mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-21 05:43:59 -07:00
Default route population works on Mac!
This commit is contained in:
parent
eb4a78bcc3
commit
1bf1c38b30
4 changed files with 18 additions and 4 deletions
|
@ -234,8 +234,8 @@ static void _routeCmd(const char *op,const InetAddress &target,const InetAddress
|
|||
int exitcode = -1;
|
||||
::waitpid(p,&exitcode,0);
|
||||
} else if (p == 0) {
|
||||
//::close(STDOUT_FILENO);
|
||||
//::close(STDERR_FILENO);
|
||||
::close(STDOUT_FILENO);
|
||||
::close(STDERR_FILENO);
|
||||
if (via) {
|
||||
if ((ifscope)&&(ifscope[0])) {
|
||||
::execl(ZT_BSD_ROUTE_CMD,ZT_BSD_ROUTE_CMD,op,"-ifscope",ifscope,((target.ss_family == AF_INET6) ? "-inet6" : "-inet"),target.toString().c_str(),via.toIpString().c_str(),(const char *)0);
|
||||
|
|
|
@ -57,7 +57,7 @@ public:
|
|||
*/
|
||||
inline bool set(const InetAddress &target,const InetAddress &via,const char *device)
|
||||
{
|
||||
if ((!_via)&&(!_device[0]))
|
||||
if ((!via)&&(!device[0]))
|
||||
return false;
|
||||
this->remove();
|
||||
_target = target;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue