mirror of
https://github.com/fatedier/frp.git
synced 2025-08-02 03:59:03 +00:00
Co-authored-by: tanghuafa <tanghuafa@bytedance.com>
This commit is contained in:
@@ -143,6 +143,7 @@ func SendUdpMsg(addr string, msg string) (res string, err error) {
|
||||
return
|
||||
}
|
||||
|
||||
conn.SetReadDeadline(time.Now().Add(10 * time.Second))
|
||||
buf := make([]byte, 2048)
|
||||
n, errRet := conn.Read(buf)
|
||||
if errRet != nil {
|
||||
|
Reference in New Issue
Block a user