add socks5 udp relay

This commit is contained in:
ginuerzh
2021-11-07 23:39:35 +08:00
parent e8f040cbdf
commit 16f34d3e94
39 changed files with 728 additions and 131 deletions

View File

@ -1,6 +1,7 @@
package v5
import (
"crypto/tls"
"net/url"
"time"
)
@ -8,11 +9,12 @@ import (
const (
connectTimeout = "timeout"
auth = "auth"
disable4a = "disable4a"
noTLS = "notls"
)
type metadata struct {
connectTimeout time.Duration
User *url.Userinfo
disable4a bool
tlsConfig *tls.Config
noTLS bool
}