mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-18 21:16:54 +02:00
BSD build fix.
This commit is contained in:
parent
6fc70f7c16
commit
69922b6c39
1 changed files with 2 additions and 1 deletions
|
@ -227,7 +227,8 @@ static bool ___removeIp(const std::string &_dev,const InetAddress &ip)
|
|||
{
|
||||
long cpid = (long)vfork();
|
||||
if (cpid == 0) {
|
||||
execl("/sbin/ifconfig","/sbin/ifconfig",_dev.c_str(),"inet",ip.toIpString().c_str(),"-alias",(const char *)0);
|
||||
char ipbuf[64];
|
||||
execl("/sbin/ifconfig","/sbin/ifconfig",_dev.c_str(),"inet",ip.toIpString(ipbuf),"-alias",(const char *)0);
|
||||
_exit(-1);
|
||||
} else if (cpid > 0) {
|
||||
int exitcode = -1;
|
||||
|
|
Loading…
Add table
Reference in a new issue