mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-09-10 18:24:34 +00:00
SOCKS5 UDP implementation
This commit is contained in:
@@ -96,7 +96,7 @@ func proxyServer(args []string) {
|
||||
if !packet {
|
||||
// TCP
|
||||
log.Printf("%s (%s): [TCP] %s\n", addr.String(), username, reqAddr)
|
||||
conn, err := net.Dial("tcp", reqAddr)
|
||||
conn, err := net.DialTimeout("tcp", reqAddr, dialTimeout)
|
||||
if err != nil {
|
||||
log.Printf("TCP error %s: %s\n", reqAddr, err.Error())
|
||||
return core.ConnFailed, err.Error(), nil
|
||||
|
Reference in New Issue
Block a user