mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-12-22 22:15:46 +00:00
Only replace call name with interface prefix when interface is set
This commit is contained in:
parent
3f8a4ab17d
commit
387ae9ea6c
@ -112,7 +112,10 @@ func (iface *tcpInterface) listener() {
|
||||
// This all happens in a separate goroutine that it spawns.
|
||||
func (iface *tcpInterface) call(saddr string, socksaddr *string, sintf string) {
|
||||
go func() {
|
||||
callname := fmt.Sprintf("%s/%s", saddr, sintf)
|
||||
callname := saddr
|
||||
if sintf != "" {
|
||||
callname = fmt.Sprintf("%s/%s", saddr, sintf)
|
||||
}
|
||||
quit := false
|
||||
iface.mutex.Lock()
|
||||
if _, isIn := iface.calls[callname]; isIn {
|
||||
|
Loading…
Reference in New Issue
Block a user