1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-23 01:49:53 +03:00

Unix.c: don't use hardcoded path to call "ethtool"

This commit is contained in:
Davide Beatrici 2018-07-30 06:35:02 +02:00
parent c1a6bdb51e
commit 097369849b

View File

@ -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));
}
}