diff options
author | Tomek Dubrownik <t.dubrownik@gmail.com> | 2012-01-28 21:50:07 +0100 |
---|---|---|
committer | Tomek Dubrownik <t.dubrownik@gmail.com> | 2012-01-28 21:50:07 +0100 |
commit | f9696225a224625d610bbd599ed4ba07409b33e5 (patch) | |
tree | ea0bd25503b72ea791e499211d1fe86851cf41f1 | |
parent | 29fb2bfa4b166bb203c3fe43938db0f7b797eaaa (diff) | |
download | checkinator-f9696225a224625d610bbd599ed4ba07409b33e5.tar.gz checkinator-f9696225a224625d610bbd599ed4ba07409b33e5.tar.bz2 checkinator-f9696225a224625d610bbd599ed4ba07409b33e5.zip |
port now configurable
-rw-r--r-- | at.py | 2 | ||||
-rw-r--r-- | config.py | 6 |
2 files changed, 5 insertions, 3 deletions
@@ -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) @@ -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', ] |