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

Merge PR #593: Unix.c: don't use hardcoded path to call "ethtool"

This commit is contained in:
Davide Beatrici 2018-08-05 16:00:25 +02:00 committed by GitHub
commit 30a554c190
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -364,7 +364,7 @@ void UnixDisableInterfaceOffload(char *name)
{ {
char *a = t->Token[i]; 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)); FreeToken(UnixExec(tmp));
} }
} }