servo: fix warning for getExe and iptables
This commit is contained in:
@@ -28,7 +28,7 @@ let
|
|||||||
mkNetNsConfig = name: opts: with opts; {
|
mkNetNsConfig = name: opts: with opts; {
|
||||||
systemd.services."netns-${name}" = let
|
systemd.services."netns-${name}" = let
|
||||||
ip = lib.getExe' pkgs.iproute2 "ip";
|
ip = lib.getExe' pkgs.iproute2 "ip";
|
||||||
iptables = lib.getExe pkgs.iptables;
|
iptables = lib.getExe' pkgs.iptables "iptables";
|
||||||
in-ns = "${ip} netns exec ${name}";
|
in-ns = "${ip} netns exec ${name}";
|
||||||
bridgePort = port: proto: ''
|
bridgePort = port: proto: ''
|
||||||
${in-ns} ${iptables} -A PREROUTING -t nat -p ${proto} --dport ${port} -m iprange --dst-range ${netnsPubIpv4} \
|
${in-ns} ${iptables} -A PREROUTING -t nat -p ${proto} --dport ${port} -m iprange --dst-range ${netnsPubIpv4} \
|
||||||
|
Reference in New Issue
Block a user