powerdns-admin/run.py

12 lines
225 B
Python
Raw Normal View History

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