diff options
Diffstat (limited to 'packages/torouter-web/src/tui')
-rw-r--r-- | packages/torouter-web/src/tui/controllers/network.py | 4 | ||||
-rw-r--r-- | packages/torouter-web/src/tui/utils/parsing.py | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/packages/torouter-web/src/tui/controllers/network.py b/packages/torouter-web/src/tui/controllers/network.py index d189d0c..cc46643 100644 --- a/packages/torouter-web/src/tui/controllers/network.py +++ b/packages/torouter-web/src/tui/controllers/network.py @@ -55,14 +55,14 @@ class firewall: def GET(self): if session.is_logged() > 0: - return render.base(render.firewall(configuration.get_form("firewall")),menu(0)) + return render.base(render.firewall(configuration.get_form("firewall")),menu(1)) else: return render.base(render.login()) def POST(self): if session.is_logged() > 0: self.update_config(web.input()) - return render.base(render.firewall(),menu(1)) + return render.base(render.firewall(configuration.get_form("firewall")),menu(1)) else: return render.base(render.login()) diff --git a/packages/torouter-web/src/tui/utils/parsing.py b/packages/torouter-web/src/tui/utils/parsing.py index 6acf988..beb45d3 100644 --- a/packages/torouter-web/src/tui/utils/parsing.py +++ b/packages/torouter-web/src/tui/utils/parsing.py @@ -81,6 +81,7 @@ class torrc: def parse(self): for line in self.fp.readlines(): + line = line.lstrip() if line.startswith("#") or line == "": continue else: |