fixed var

- Diese und die folgenden Zeilen werden ignoriert --

M    pythonrewrite/plugins/network/network.py
M    pythonrewrite/plugins/network/root_action.py
master
age 17 years ago
parent 514101193d
commit ec2b713836

@ -85,6 +85,7 @@ class network(CryptoBoxPlugin.CryptoBoxPlugin):
root_action_plug.IFCONFIG_BIN,
root_action_plug.IFACE])
proc.wait()
(output, error) = proc.communicate()
if proc.returncode != 0: return (0,0,0,0)
## this regex matches the four numbers of the IP
match = re.search(u'inet [\w]+:(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\s',output)

@ -6,6 +6,7 @@
PLUGIN_TYPE = "cryptobox"
IFCONFIG_BIN = "/sbin/ifconfig"
#TODO: put IFACE in config
IFACE = "eth0"
import subprocess

Loading…
Cancel
Save