Don't register to ipv6 when ipv4only is enabled.

This commit is contained in:
furo 2023-08-27 21:23:55 +02:00
parent d11bbbc921
commit 2b07832b9e

View file

@ -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();