diff --git a/proxy/base.go b/proxy/base.go index 9c008a7..b6235c8 100644 --- a/proxy/base.go +++ b/proxy/base.go @@ -153,7 +153,17 @@ func (b *Base) MiddleName() string { sb.WriteString("") if b.TLS { - sb.WriteString("+tls") + tt := "tls" + if dc := b.DialConf; dc != nil && dc.TlsType != "" { + tt = dc.TlsType + } + + if lc := b.ListenConf; lc != nil && lc.TlsType != "" { + tt = lc.TlsType + } + + sb.WriteString("+") + sb.WriteString(tt) if b.IsLazyTls() { sb.WriteString("+lazy") } diff --git a/proxy/socks5/socks5.go b/proxy/socks5/socks5.go index 8a7f0d5..633a2ea 100644 --- a/proxy/socks5/socks5.go +++ b/proxy/socks5/socks5.go @@ -21,6 +21,8 @@ https://datatracker.ietf.org/doc/html/rfc1929 纵观各种代理协议,vless/vmess/trojan/shadowsocks协议 都借鉴了socks5,有不少类似的地方。 所以 制作代理, 有必要先学习socks5标准。 + +关于socks4, 它太简单了, 既不支持udp, 也不支持ipv6, 也没有验证功能, 所以本作不予支持 */ package socks5