修订代码, 将dockerfile开头字母大写并放入 cmd/verysimple

This commit is contained in:
e1732a364fed
2022-05-09 15:34:01 +08:00
parent dd94e71e83
commit 7539d4769e
3 changed files with 3 additions and 3 deletions

View File

@@ -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 这种
}

View File

@@ -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 {