port now configurable

master
Tomek Dubrownik 2012-01-28 21:50:07 +01:00
parent 29fb2bfa4b
commit f9696225a2
2 changed files with 5 additions and 3 deletions

2
at.py
View File

@ -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)

View File

@ -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',
]