mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-12-24 13:27:56 +08:00
支持打印出tls的具体类型
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
@@ -21,6 +21,8 @@ https://datatracker.ietf.org/doc/html/rfc1929
|
||||
|
||||
纵观各种代理协议,vless/vmess/trojan/shadowsocks协议 都借鉴了socks5,有不少类似的地方。
|
||||
所以 制作代理, 有必要先学习socks5标准。
|
||||
|
||||
关于socks4, 它太简单了, 既不支持udp, 也不支持ipv6, 也没有验证功能, 所以本作不予支持
|
||||
*/
|
||||
package socks5
|
||||
|
||||
|
||||
Reference in New Issue
Block a user