mirror of
https://github.com/fatedier/frp.git
synced 2026-01-11 22:23:12 +00:00
support udp type
This commit is contained in:
@@ -40,6 +40,6 @@ func echoWorker(c *conn.Conn) {
|
||||
return
|
||||
}
|
||||
|
||||
c.Write(buff)
|
||||
c.WriteString(buff)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ func TestEchoServer(t *testing.T) {
|
||||
timer := time.Now().Add(time.Duration(5) * time.Second)
|
||||
c.SetDeadline(timer)
|
||||
|
||||
c.Write(ECHO_TEST_STR)
|
||||
c.WriteString(ECHO_TEST_STR)
|
||||
|
||||
buff, err := c.ReadLine()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user