mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-25 15:41:05 +00:00
add ports to addresses specified by the bind setting
This commit is contained in:
parent
1bb1dfa87b
commit
f2734dc3d8
@ -316,8 +316,13 @@ public:
|
|||||||
|
|
||||||
#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…
Reference in New Issue
Block a user