Ver Fonte

close udp hub

v2ray há 9 anos atrás
pai
commit
795c49b6fb
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      proxy/shadowsocks/shadowsocks.go

+ 3 - 0
proxy/shadowsocks/shadowsocks.go

@@ -32,6 +32,9 @@ func (this *Shadowsocks) Close() {
 	this.accepting = false
 	this.tcpHub.Close()
 	this.tcpHub = nil
+
+	this.udpHub.Close()
+	this.udpHub = nil
 }
 
 func (this *Shadowsocks) Listen(port v2net.Port) error {