Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Merge 'remotes/trunk'
Browse files Browse the repository at this point in the history
  • Loading branch information
na-Itms committed Nov 8, 2018
2 parents 9a89ffc + 4041928 commit ad868bb
Show file tree
Hide file tree
Showing 14 changed files with 1,513 additions and 197 deletions.
1 change: 1 addition & 0 deletions binaries/data/mods/public/gui/session/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -1567,6 +1567,7 @@ function sendLobbyPlayerlistUpdate()

/**
* Send a report on the gamestatus to the lobby.
* Keep in sync with source/tools/XpartaMuPP/LobbyRanking.py
*/
function reportGame()
{
Expand Down
8 changes: 8 additions & 0 deletions source/lobby/XmppClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,8 @@ bool XmppClient::handleIq(const glooxwrapper::IQ& iq)

if (g_NetServer)
g_NetServer->OnLobbyAuth(iq.from().username(), lobbyAuth->m_Token.to_string());
else
LOGERROR("Received lobby authentication request, but not hosting currently!");
}
}
else if (iq.subtype() == gloox::IQ::Error)
Expand Down Expand Up @@ -1224,5 +1226,11 @@ void XmppClient::handleSessionInitiation(const glooxwrapper::Jingle::Session::Ji
return;
}

if (!g_NetServer)
{
LOGERROR("Received STUN connection request, but not hosting currently!");
return;
}

g_NetServer->SendHolePunchingMessage(candidate.ip.to_string(), candidate.port);
}
2 changes: 1 addition & 1 deletion source/tools/LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ in particular, let us know and we can try to clarify it.
xmlvalidator
MIT

XpartaMuPP
lobbybots
GPL version 2 (or later)
193 changes: 0 additions & 193 deletions source/tools/XpartaMuPP/README.md

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,9 @@ def sendProfileNotFound(self, to, player, recipient):
optp.add_option('-s', '--server', help='address of the ejabberd server',
action='store', dest='xserver',
default="localhost")
optp.add_option('-t', '--disable-tls', help='Pass this argument to connect without TLS encryption',
action='store_true', dest='xdisabletls',
default=False)

opts, args = optp.parse_args()

Expand All @@ -786,7 +789,7 @@ def sendProfileNotFound(self, to, player, recipient):
xmpp.register_plugin('xep_0060') # PubSub
xmpp.register_plugin('xep_0199') # XMPP Ping

if xmpp.connect((opts.xserver, 5222)):
if xmpp.connect((opts.xserver, 5222), True, not opts.xdisabletls):
xmpp.process(threaded=False)
else:
logging.error("Unable to connect")
Loading

0 comments on commit ad868bb

Please sign in to comment.