From ef89083295c28b1d8b15ff3dcd9a11d8c1595dea Mon Sep 17 00:00:00 2001 From: ficus Date: Fri, 23 Nov 2012 23:13:04 +0100 Subject: add about page, include version number --- torouterui/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'torouterui/server.py') diff --git a/torouterui/server.py b/torouterui/server.py index 8ae4a3a..3dfb946 100644 --- a/torouterui/server.py +++ b/torouterui/server.py @@ -1,8 +1,7 @@ -from torouterui import app +from torouterui import app, __version__ import argparse - def main(): """Primary entry-point for torouterui. """ @@ -27,6 +26,7 @@ def main(): default="uap0", help="wifi interface (uap0 or wlan0)") args = parser.parse_args() + app.config['TOROUTERVERSION'] = __version__ app.config['LAN_IF'] = args.lanif app.config['WAN_IF'] = args.wanif app.config['WIFI_IF'] = args.wifiif -- cgit v1.2.3