ip nur 3 .

This commit is contained in:
Markus 2019-08-31 20:02:45 +02:00
parent 19b16f1d15
commit 9cd5f8f18d
1 changed files with 2 additions and 2 deletions

View File

@ -1044,9 +1044,9 @@ int setS5ProxytoSettings(Settings &settings, std::string Optarg)
return 2;
}
}
//Überprüfe ob Ip aus 4 * '.' besteht und dann eine Zahl ist:
//Überprüfe ob Ip aus 3 * '.' besteht und dann eine Zahl ist:
std::string tmpIp = settings.proxy_ip;
for (int i = 0; i < 4; ++i) {
for (int i = 0; i < 3; ++i) {
if(tmpIp.find(".") != std::string::npos) {
tmpIp.erase(static_cast<size_t>(tmpIp.find(".")), 1);
}