mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-22 21:10:29 +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.
|
// This all happens in a separate goroutine that it spawns.
|
||||||
func (iface *tcpInterface) call(saddr string, socksaddr *string, sintf string) {
|
func (iface *tcpInterface) call(saddr string, socksaddr *string, sintf string) {
|
||||||
go func() {
|
go func() {
|
||||||
callname := fmt.Sprintf("%s/%s", saddr, sintf)
|
callname := saddr
|
||||||
|
if sintf != "" {
|
||||||
|
callname = fmt.Sprintf("%s/%s", saddr, sintf)
|
||||||
|
}
|
||||||
quit := false
|
quit := false
|
||||||
iface.mutex.Lock()
|
iface.mutex.Lock()
|
||||||
if _, isIn := iface.calls[callname]; isIn {
|
if _, isIn := iface.calls[callname]; isIn {
|
||||||
|
Loading…
Reference in New Issue
Block a user