mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-11 07:36:38 -07:00
Build fix on Linux with G++.
This commit is contained in:
parent
0ad84b8723
commit
9acfd3eb73
2 changed files with 6 additions and 5 deletions
|
@ -251,7 +251,7 @@ EthernetTap::EthernetTap(
|
|||
bool recalledDevice = false;
|
||||
if ((tag)&&(tag[0])) {
|
||||
Utils::scopy(ifr.ifr_name,sizeof(ifr.ifr_name),tag);
|
||||
Utils::snprintf(procpath,sizeof(procpath),"/proc/sys/net/ipv4/conf/%s",ifr.fr_name);
|
||||
Utils::snprintf(procpath,sizeof(procpath),"/proc/sys/net/ipv4/conf/%s",ifr.ifr_name);
|
||||
recalledDevice = (stat(procpath,&sbuf) != 0);
|
||||
}
|
||||
if (!recalledDevice) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue