Commit 38fc5ec5 authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

experiments: fixes for renamed proxy parameters

parent 3f12093b
...@@ -110,11 +110,11 @@ class NetProxyListener(NetProxy): ...@@ -110,11 +110,11 @@ class NetProxyListener(NetProxy):
cmd = (f'-s {env.proxy_shm_path(self)} ' cmd = (f'-s {env.proxy_shm_path(self)} '
f'-S {self.shm_size} ') f'-S {self.shm_size} ')
for (nic, local) in self.nics: for (nic, local) in self.nics:
cmd += '-d ' if local else '-n ' cmd += '-C ' if local else '-L '
cmd += env.nic_eth_path(nic) + ' ' cmd += env.nic_eth_path(nic) + ' '
for ((net_c, net_l), local) in self.n2ns: for ((net_c, net_l), local) in self.n2ns:
cmd += '-d ' if local else '-n ' cmd += '-C ' if local else '-L '
cmd += env.n2n_eth_path(net_l, net_c) + ' ' cmd += env.n2n_eth_path(net_l, net_c) + ' '
cmd += f' 0.0.0.0 {self.port}' cmd += f' 0.0.0.0 {self.port}'
...@@ -177,11 +177,11 @@ class NetProxyConnecter(NetProxy): ...@@ -177,11 +177,11 @@ class NetProxyConnecter(NetProxy):
cmd = (f'-s {env.proxy_shm_path(self)} ' cmd = (f'-s {env.proxy_shm_path(self)} '
f'-S {self.shm_size} ') f'-S {self.shm_size} ')
for (nic, local) in self.nics: for (nic, local) in self.nics:
cmd += '-n ' if local else '-d ' cmd += '-L ' if local else '-C '
cmd += env.nic_eth_path(nic) + ' ' cmd += env.nic_eth_path(nic) + ' '
for ((net_c, net_l), local) in self.n2ns: for ((net_c, net_l), local) in self.n2ns:
cmd += '-n ' if local else '-d ' cmd += '-L ' if local else '-C '
cmd += env.n2n_eth_path(net_l, net_c) + ' ' cmd += env.n2n_eth_path(net_l, net_c) + ' '
cmd += f' {self.listener.ip} {self.listener.port}' cmd += f' {self.listener.ip} {self.listener.port}'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment