فهرست منبع

Add comment noting when handshake is performed

mirokuratczyk 2 سال پیش
والد
کامیت
9f6ebc4ace
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      psiphon/server/tlsTunnel.go

+ 3 - 0
psiphon/server/tlsTunnel.go

@@ -43,6 +43,9 @@ type TLSTunnelServer struct {
 	obfuscatorSeedHistory  *obfuscator.SeedHistory
 	obfuscatorSeedHistory  *obfuscator.SeedHistory
 }
 }
 
 
+// ListenTLSTunnel returns the listener of a new TLSTunnelServer.
+// Note: the first Read or Write call on a connection returned by the listener
+// will trigger the underlying TLS handshake.
 func ListenTLSTunnel(
 func ListenTLSTunnel(
 	support *SupportServices,
 	support *SupportServices,
 	listener net.Listener,
 	listener net.Listener,