tcphub now takes tls config as construtor parameter

This commit is contained in:
v2ray committed 2016-05-03 00:16:07 +02:00
1 parent f594f5b606
commit 7d43952690
6 files changed
+24 -13

No files matched your search

+1 -1
View File
@@ -65,7 +65,7 @@ func (this *Shadowsocks) Listen(port v2net.Port) error {
}
}
tcpHub, err := hub.ListenTCP(port, this.handleConnection)
tcpHub, err := hub.ListenTCP(port, this.handleConnection, nil)
if err != nil {
log.Error("Shadowsocks: Failed to listen TCP on port ", port, ": ", err)
return err