zerotierone: fix route handling on Linux (#45391)
Add some substitutions for the ip calls in ManagedRoutes. Fixes #45022
This commit is contained in:
parent
f0957b9477
commit
c28898dc70
1 changed files with 6 additions and 0 deletions
|
@ -10,6 +10,12 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace ./osdep/ManagedRoute.cpp \
|
||||
--replace '/usr/sbin/ip' '${iproute}/bin/ip'
|
||||
|
||||
substituteInPlace ./osdep/ManagedRoute.cpp \
|
||||
--replace '/sbin/ip' '${iproute}/bin/ip'
|
||||
|
||||
substituteInPlace ./osdep/LinuxEthernetTap.cpp \
|
||||
--replace 'execlp("ip",' 'execlp("${iproute}/bin/ip",'
|
||||
|
||||
|
|
Loading…
Reference in a new issue