mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-06-30 19:15:23 +00:00
Fix a potential issue mentioned in #81
This commit is contained in:
parent
f7c6ecde90
commit
131e6bf239
|
@ -63,7 +63,6 @@ func (this *Shadowsocks) Listen(port v2net.Port) error {
|
||||||
return proxy.ErrorAlreadyListening
|
return proxy.ErrorAlreadyListening
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.accepting = true
|
|
||||||
|
|
||||||
tcpHub, err := hub.ListenTCP(port, this.handleConnection)
|
tcpHub, err := hub.ListenTCP(port, this.handleConnection)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -82,6 +81,9 @@ func (this *Shadowsocks) Listen(port v2net.Port) error {
|
||||||
this.udpHub = udpHub
|
this.udpHub = udpHub
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.port = port
|
||||||
|
this.accepting = true
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user