mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-12-24 13:27:56 +08:00
修订代码, 将dockerfile开头字母大写并放入 cmd/verysimple
This commit is contained in:
2
main.go
2
main.go
@@ -788,7 +788,7 @@ func passToOutClient(iics incomingInserverConnState, isfallback bool, wlc net.Co
|
||||
iics.inServerTlsRawReadRecorder.StopRecord()
|
||||
}
|
||||
} else {
|
||||
isTlsLazy_clientEnd = Tls_lazy_encrypt && CanLazyEncrypt(client)
|
||||
isTlsLazy_clientEnd = Tls_lazy_encrypt && CanLazyEncrypt(client) //比如dial是 tls+vless 这种
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -32,9 +32,9 @@ func init() {
|
||||
|
||||
//有TLS, network为tcp或者unix, 无AdvLayer.
|
||||
//grpc 这种多路复用的链接是绝对无法开启 lazy的, ws 理论上也只有服务端发向客户端的链接 内嵌tls时可以lazy,但暂不考虑
|
||||
func CanLazyEncrypt(outClient proxy.BaseInterface) bool {
|
||||
func CanLazyEncrypt(x proxy.BaseInterface) bool {
|
||||
|
||||
return outClient.IsUseTLS() && CanNetwork_tlsLazy(outClient.Network()) && outClient.AdvancedLayer() == ""
|
||||
return x.IsUseTLS() && CanNetwork_tlsLazy(x.Network()) && x.AdvancedLayer() == ""
|
||||
}
|
||||
|
||||
func CanNetwork_tlsLazy(n string) bool {
|
||||
|
||||
Reference in New Issue
Block a user