saddem019 / phpdesktop

Automatically exported from code.google.com/p/phpdesktop
0 stars 0 forks source link

Allow to listen on all ip addresses available #165

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Mongoose allows to specify only port to listen on and in such case the web 
server should be listening on all ip addresses available (127.0.0.1, 
192.168.x.x, public..). Example from mongoose docs:

    listening_ports 8080,8043s 

(the second port is for SLL and is optional)

Currently phpdesktop forces a specific ip address be specified in 
settings.json. If the ip address is empty it assigns 127.0.0.1 by default.

It should be allowed for the ip address to be "*" and in such case set the 
listening_ports option in mongoose to contain only port.

Minor changes will be required in web_server.cpp:

https://code.google.com/p/phpdesktop/source/browse/phpdesktop-chrome/web_server.
cpp?r=c1ba05c26abf#59

https://code.google.com/p/phpdesktop/source/browse/phpdesktop-chrome/web_server.
cpp?r=c1ba05c26abf#161

Original issue reported on code.google.com by czarek.t...@gmail.com on 23 Apr 2015 at 10:06

GoogleCodeExporter commented 8 years ago
Project will move to Github. Find this issue at the new address (soon): 
https://github.com/cztomczak/phpdesktop/issues/165

Original comment by czarek.t...@gmail.com on 24 Aug 2015 at 3:36