From f9696225a224625d610bbd599ed4ba07409b33e5 Mon Sep 17 00:00:00 2001 From: Tomek Dubrownik Date: Sat, 28 Jan 2012 21:50:07 +0100 Subject: [PATCH] port now configurable --- at.py | 2 +- config.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/at.py b/at.py index 402762b..21e4cc6 100644 --- a/at.py +++ b/at.py @@ -264,4 +264,4 @@ if __name__ == '__main__': conn = setup_db() updater = DnsmasqUpdater(config.lease_file, config.lease_offset, config.timeout) updater.start() - app.run('0.0.0.0') + app.run('0.0.0.0', config.port) diff --git a/config.py b/config.py index da0c797..e89b78c 100644 --- a/config.py +++ b/config.py @@ -1,12 +1,14 @@ +port = 8080 + db = './at.db' cap_file = './dhcp-cap' lease_file = './leases' lease_offset = 60 * 20 -timeout = 300 +timeout = 3000 wiki_url = 'http://hackerspace.pl/wiki/doku.php?id=people:%(login)s:start' -claimable_prefix = '10.8.0.' +claimable_prefix = '192.168.1.' claimable_exclude = [ # '127.0.0.1', ]