优化udp代理
This commit is contained in:
@ -3,7 +3,6 @@ package tcp
|
|||||||
import (
|
import (
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
|
||||||
logger "log"
|
logger "log"
|
||||||
"net"
|
"net"
|
||||||
"runtime/debug"
|
"runtime/debug"
|
||||||
@ -225,9 +224,9 @@ func (s *TCP) OutToUDP(inConn *net.Conn) (err error) {
|
|||||||
if strings.Contains(err.Error(), "n != int(") {
|
if strings.Contains(err.Error(), "n != int(") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if !utils.IsNetDeadlineErr(err) && err != io.EOF && !utils.IsNetClosedErr(err) {
|
// if !utils.IsNetDeadlineErr(err) && err != io.EOF && !utils.IsNetClosedErr(err) {
|
||||||
s.log.Printf("udp packet revecived from client fail, err: %s", err)
|
// s.log.Printf("udp packet revecived from client fail, err: %s", err)
|
||||||
}
|
// }
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
localAddr := *s.cfg.Parent
|
localAddr := *s.cfg.Parent
|
||||||
|
|||||||
Reference in New Issue
Block a user