mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge #5286
5286: Only show port forward message if there's a problem r=def- a=heinrich5991 Previously, it was always shown. Fixes #5203. ## Checklist - [x] Tested the change ~~ingame~~ - [ ] Provided screenshots if it is a visual change - [ ] Tested in combination with possibly related configuration options - [ ] Written a unit test if it works standalone, system.c especially - [ ] Considered possible null pointers and out of bounds array indexing - [ ] Changed no physics that affect existing maps - [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional) Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
This commit is contained in:
commit
dd9e0b0993
|
@ -401,7 +401,7 @@ void CRegister::CProtocol::CJob::Run()
|
||||||
{
|
{
|
||||||
log_debug(ProtocolToSystem(m_Protocol), "status: %s", (const char *)StatusString);
|
log_debug(ProtocolToSystem(m_Protocol), "status: %s", (const char *)StatusString);
|
||||||
}
|
}
|
||||||
if(Status == m_pShared->m_LatestResponseStatus)
|
if(Status == m_pShared->m_LatestResponseStatus && Status == STATUS_NEEDCHALLENGE)
|
||||||
{
|
{
|
||||||
log_error(ProtocolToSystem(m_Protocol), "ERROR: the master server reports that clients can not connect to this server.");
|
log_error(ProtocolToSystem(m_Protocol), "ERROR: the master server reports that clients can not connect to this server.");
|
||||||
log_error(ProtocolToSystem(m_Protocol), "ERROR: configure your firewall/nat to let through udp on port %d.", m_ServerPort);
|
log_error(ProtocolToSystem(m_Protocol), "ERROR: configure your firewall/nat to let through udp on port %d.", m_ServerPort);
|
||||||
|
|
Loading…
Reference in a new issue