Просмотр исходного кода

Add comment noting when handshake is performed

mirokuratczyk 2 лет назад
Родитель
Сommit
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
 }
 
+// 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(
 	support *SupportServices,
 	listener net.Listener,