File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -974,8 +974,13 @@ void CServerListManager::SetRegistered ( const bool bIsRegister )
974974 // it is an URL of a dynamic IP address, the IP address might have
975975 // changed in the meanwhile.
976976 // Allow IPv4 only for communicating with Directories
977- const QString strNetworkAddress = NetworkUtil::GetDirectoryAddress ( DirectoryType, strDirectoryAddress );
978- const bool bDirectoryAddressValid = NetworkUtil ().ParseNetworkAddress ( strNetworkAddress, DirectoryAddress, false );
977+ // Use SRV DNS discovery for directory connections
978+ const QString strNetworkAddress = NetworkUtil::GetDirectoryAddress ( DirectoryType, strDirectoryAddress );
979+ #ifndef CLIENT_NO_SRV_CONNECT
980+ const bool bDirectoryAddressValid = NetworkUtil ().ParseNetworkAddressWithSrvDiscovery ( strNetworkAddress, DirectoryAddress, false );
981+ #else
982+ const bool bDirectoryAddressValid = NetworkUtil ().ParseNetworkAddress ( strNetworkAddress, DirectoryAddress, false );
983+ #endif
979984
980985 if ( bIsRegister )
981986 {
You can’t perform that action at this time.
0 commit comments