pluss icon indicating copy to clipboard operation
pluss copied to clipboard

wrong host in line 21main.py

Open seraphyn opened this issue 11 years ago • 1 comments

There's the wrong host in line 21: app.run(host='pluss.aiiane.com', port=54321, debug=True) so there won't be the right host for listenling as configured in pluss.cfg.

The following error will be:

python main.py 
 * Running on http://pluss.aiiane.com:54321/
Traceback (most recent call last):
  File "main.py", line 21, in <module>
    app.run(host='pluss.aiiane.com', port=54321, debug=True)
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 772, in run
    run_simple(host, port, self, **options)
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 706, in run_simple
    test_socket.bind((hostname, port))
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 99] Cannot assign requested address

After changing the line 21 to the same host like in pluss.cfg copied from example [server] host=127.0.0.1:54321

It will run without any error.

seraphyn avatar Jun 18 '14 16:06 seraphyn

Looks like that was missed when I did the rewrite of pluss. :) Definitely a bug.

ayust avatar Jun 23 '14 03:06 ayust