mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Add additional check to input address handling in CNetAdr2
This commit is contained in:
parent
b7e3e02228
commit
26c0fa89ab
@ -128,7 +128,7 @@ void CNetAdr2::SetIPAndPort(std::string svInAdr, std::string svInPort)
|
||||
svInAdr = "127.0.0.1";
|
||||
}
|
||||
|
||||
if (strstr(svInAdr.c_str(), "["))
|
||||
if (strstr(svInAdr.c_str(), "[") || strstr(svInAdr.c_str(), "]"))
|
||||
{
|
||||
svInAdr = GetBase(svInAdr);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user