mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Don't register to ipv6 when ipv4only is enabled.
This commit is contained in:
parent
d11bbbc921
commit
2b07832b9e
|
@ -257,6 +257,9 @@ void CRegister::ConchainOnConfigChange(IConsole::IResult *pResult, void *pUserDa
|
||||||
|
|
||||||
void CRegister::CProtocol::SendRegister()
|
void CRegister::CProtocol::SendRegister()
|
||||||
{
|
{
|
||||||
|
if(g_Config.m_SvIpv4Only && (m_Protocol == PROTOCOL_TW6_IPV6 || m_Protocol == PROTOCOL_TW7_IPV6) )
|
||||||
|
return;
|
||||||
|
|
||||||
int64_t Now = time_get();
|
int64_t Now = time_get();
|
||||||
int64_t Freq = time_freq();
|
int64_t Freq = time_freq();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue