5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-02 01:21:38 +00:00

fix duplicate connection bug, I think this is also in develop

This commit is contained in:
Arceliar 2019-01-22 21:23:57 -06:00
parent 12c0e019dc
commit eb8951081d

View File

@ -183,7 +183,7 @@ func (iface *tcpInterface) call(saddr string, socksaddr *string, sintf string) {
if sintf != "" { if sintf != "" {
callname = fmt.Sprintf("%s/%s", saddr, sintf) callname = fmt.Sprintf("%s/%s", saddr, sintf)
} }
if iface.isAlreadyCalling(saddr) { if iface.isAlreadyCalling(callname) {
return return
} }
iface.mutex.Lock() iface.mutex.Lock()