Add support for specifying TCP source interface, i.e. tcp://a.b.c.d:e/eth0, for multiple simultaneous peerings to the same node over different interfaces

This commit is contained in:
Neil Alexander 2018-09-25 15:32:45 +01:00
parent 4666b8f6cd
commit aecc151baf
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
3 changed files with 49 additions and 14 deletions

View file

@ -153,6 +153,6 @@ func (m *multicast) listen() {
}
addr.Zone = from.Zone
saddr := addr.String()
m.core.tcp.connect(saddr)
m.core.tcp.connect(saddr, "")
}
}