mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Unix.c: don't use hardcoded path to call "ethtool"
This commit is contained in:
parent
c1a6bdb51e
commit
097369849b
@ -364,7 +364,7 @@ void UnixDisableInterfaceOffload(char *name)
|
||||
{
|
||||
char *a = t->Token[i];
|
||||
|
||||
Format(tmp, sizeof(tmp), "/sbin/ethtool -K %s %s off 2>/dev/null", name, a);
|
||||
Format(tmp, sizeof(tmp), "ethtool -K %s %s off 2>/dev/null", name, a);
|
||||
FreeToken(UnixExec(tmp));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user