]> git.llucax.com Git - software/pymin.git/blobdiff - config.py
Merge branch 'master' of git.llucax.com.ar:/var/lib/git/software/pymin into procman
[software/pymin.git] / config.py
index 3ff98c687a8c2a99eb8e16cf7508beb49b698e84..a0b5498cc228f50a57a330ef3319c239a5c21b47 100644 (file)
--- a/config.py
+++ b/config.py
@@ -11,6 +11,12 @@ config_path = join(base_path, 'config')
 
 class Root(Handler):
 
 
 class Root(Handler):
 
+    def __init__(self):
+        f = file("/proc/sys/net/ipv4/ip_forward","w")
+        f.write("1")
+        f.close()
+        #self.ip.device_up_hook(self.dns)
+
     firewall = FirewallHandler(
         pickle_dir = join(pickle_path, 'firewall'),
         config_dir = join(config_path, 'firewall'))
     firewall = FirewallHandler(
         pickle_dir = join(pickle_path, 'firewall'),
         config_dir = join(config_path, 'firewall'))