mirror of https://github.com/v2ray/v2ray-core
close udp hub
parent
dde3f60e30
commit
795c49b6fb
|
@ -32,6 +32,9 @@ func (this *Shadowsocks) Close() {
|
||||||
this.accepting = false
|
this.accepting = false
|
||||||
this.tcpHub.Close()
|
this.tcpHub.Close()
|
||||||
this.tcpHub = nil
|
this.tcpHub = nil
|
||||||
|
|
||||||
|
this.udpHub.Close()
|
||||||
|
this.udpHub = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *Shadowsocks) Listen(port v2net.Port) error {
|
func (this *Shadowsocks) Listen(port v2net.Port) error {
|
||||||
|
|
Loading…
Reference in New Issue