aboutsummaryrefslogtreecommitdiffstats
path: root/torouterui/server.py
diff options
context:
space:
mode:
authorficus <ficus@robocracy.org>2012-11-23 23:13:04 +0100
committerficus <ficus@robocracy.org>2012-11-23 23:13:04 +0100
commitef89083295c28b1d8b15ff3dcd9a11d8c1595dea (patch)
treee4e5a822fc2c515cce83609203f214b04c4a5f96 /torouterui/server.py
parent7bca5bd6c727fb006f0b066f9c0760c91eae921c (diff)
downloadtui-ef89083295c28b1d8b15ff3dcd9a11d8c1595dea.tar.gz
tui-ef89083295c28b1d8b15ff3dcd9a11d8c1595dea.zip
add about page, include version number
Diffstat (limited to 'torouterui/server.py')
-rw-r--r--torouterui/server.py4
1 files changed, 2 insertions, 2 deletions
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