mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-03-11 06:54:06 +00:00
Merge branch 'bind' of https://github.com/thoradia/ZeroTierOne into thoradia-bind
This commit is contained in:
commit
8866fbd618
@ -377,8 +377,13 @@ class Binder {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
for (std::vector<InetAddress>::const_iterator i(explicitBind.begin()); i != explicitBind.end(); ++i)
|
for (std::vector<InetAddress>::const_iterator i(explicitBind.begin()); i != explicitBind.end(); ++i) {
|
||||||
localIfAddrs.insert(std::pair<InetAddress, std::string>(*i, std::string()));
|
InetAddress ip = InetAddress(*i);
|
||||||
|
for (int x = 0; x < (int)portCount; ++x) {
|
||||||
|
ip.setPort(ports[x]);
|
||||||
|
localIfAddrs.insert(std::pair<InetAddress, std::string>(ip, std::string()));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Default to binding to wildcard if we can't enumerate addresses
|
// Default to binding to wildcard if we can't enumerate addresses
|
||||||
|
Loading…
x
Reference in New Issue
Block a user