This patch enable the server port to be configurable using the "default.cfg" config file.
The gloox XMPP client allow for connecting to a specific port which is updated in the gloox wrapper.
Differential D1525
Add a lobby server port config option mmoanis on May 26 2018, 11:29 AM. Authored by
Details This patch enable the server port to be configurable using the "default.cfg" config file. The gloox XMPP client allow for connecting to a specific port which is updated in the gloox wrapper.
Diff Detail
Event TimelineComment Actions Successful build - Chance fights ever on the side of the prudent. Link to build: https://jenkins.wildfiregames.com/job/differential/574/display/redirect
Comment Actions ejabberd Ubunut package for Xenial turned to be version 16.01-2 I will need to build/install from sources to complete testing of the patch, will continue by next week.
Comment Actions Sorry for the delay. Testing on a custom server (ejabberd 18.04) is done and working as expected, patch should be ready to go. Switch port to 5111 instead of 5222 python3 XpartaMuPP.py --domain localhost --login admin --password admin 2018-06-09 22:39:54 ERROR Could not connect to [::1]:5222. Socket Error #111: Connection refused 2018-06-09 22:39:56 ERROR Could not connect to 127.0.0.1:5222. Socket Error #111: Connection refused 2018-06-09 22:39:56 ERROR Unable to connect python3 XpartaMuPP.py --domain localhost --login admin --password admin -P 5111 2018-06-09 22:40:04 INFO Negotiating TLS 2018-06-09 22:40:04 INFO Using SSL version: TLSv1 2018-06-09 22:40:04 WARNING Could not find pyasn1 and pyasn1_modules. SSL certificate COULD NOT BE VERIFIED. 2018-06-09 22:40:06 INFO JID set to: admin@localhost/CC 2018-06-09 22:40:06 WARNING Could not find pyasn1 and pyasn1_modules. SSL certificate expiration COULD NOT BE VERIFIED. 2018-06-09 22:40:06 INFO XpartaMuPP started 2018-06-09 22:40:12 INFO Waiting for </stream:stream> from server Registering a user account and logging in: tail ../logs/ejabberd.log 2018-06-09 22:48:49.156 [info] <0.369.0>@ejabberd_listener:accept:302 (<0.512.0>) Accepted connection ::ffff:127.0.0.1:33640 -> ::ffff:127.0.1.1:5111 2018-06-09 22:48:49.470 [info] <0.512.0>@mod_register:try_register:326 The account player1@localhost was registered from IP address ::ffff:127.0.0.1 2018-06-09 22:48:58.666 [info] <0.369.0>@ejabberd_listener:accept:302 (<0.518.0>) Accepted connection ::ffff:127.0.0.1:33642 -> ::ffff:127.0.1.1:5111 2018-06-09 22:48:58.750 [info] <0.518.0>@ejabberd_c2s:handle_auth_success:434 (tcp|<0.518.0>) Accepted c2s SCRAM-SHA-1 authentication for player1@localhost by mnesia backend from ::ffff:127.0.0.1 2018-06-09 22:48:59.078 [info] <0.518.0>@ejabberd_c2s:bind:403 (tcp|<0.518.0>) Opened c2s session for player1@localhost/0ad 2018-06-09 22:49:20.859 [info] <0.518.0>@ejabberd_c2s:process_terminated:271 (tcp|<0.518.0>) Closing c2s session for player1@localhost/0ad: Connection failed: connection closed screenshot from the lobby
Comment Actions Hello @mmoanis, and thank you very much for the patch! As you may know we had a large period without accepting patches, because we were preparing a re-release of the game. Now it's finally over, and we also have an upgraded server and a new lobby administrator since August (@user1). So I will pass this over to him. I have only a generic knowledge of the lobby, so your patch looks good to me, but I might miss some issues, and it would be better to test your code on the server. Please let us know if you are still around in case a change is requested, and sorry for the inconvenience! |