PowerDNS-Admin/run.py

12 lines
226 B
Python
Raw Normal View History

2018-04-02 08:38:53 +02:00
#!/usr/bin/env python3
2015-12-13 10:34:12 +01:00
from app import app
2015-12-14 10:38:47 +01:00
from config import PORT
2015-12-13 10:34:12 +01:00
2016-04-13 06:13:59 +02:00
try:
2017-09-22 16:28:09 +02:00
from config import BIND_ADDRESS
2016-04-13 06:13:59 +02:00
except:
BIND_ADDRESS = '127.0.0.1'
2015-12-13 10:34:12 +01:00
if __name__ == '__main__':
2016-04-13 06:13:59 +02:00
app.run(debug = True, host=BIND_ADDRESS, port=PORT)