PoGoMap-GUI
PoGoMap-GUI copied to clipboard
PokeAlarm, hardcoded host ip
Can we not set our own host ip for PokeAlarm? Its currently hardcoded in the Form1.cs as: "runwebhook.py -H 0.0.0.0".
Does the program no longer read from the config? or is there an option (besides building form sources) to input our own host?
V3.2.6
Correct you can not set. I was making this for the simple user that wanted to get it up and running fast. You map be able to use the config. Im not sure what has priority config or command line.
Command line has priority I believe. I edited the config with no change.
Future update: Advanced options tab maybe?
I was actually thinking about adding something like this in the future. I have an idea how I can easily add this. hopfully in the next week i will have some time.
Well, to get around this i added a line in the runwebhook.py
right before #startupserver i manually set my ip
config['HOST'] = "0.0.0.0"
That's not my ip obviously
#Start up Alarm_Manager
alarm_thread = Alarm_Manager()
alarm_thread.start()
config['HOST'] = "0.0.0.0" #Your IP in quotes
#Start up Server
log.info("Webhook server running on http://%s:%s" % (config['HOST'], config['PORT']))
server = wsgi.WSGIServer((config['HOST'], config['PORT']), app, log=logging.getLogger('pywsgi'))
server.serve_forever()