From: Maxim Mamontov Date: Fri, 18 Dec 2015 21:49:51 +0000 (+0200) Subject: "*" is also not a single IP. X-Git-Tag: 2.409~174^2~7 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/5f5db963674924aea5350c5a2217bce13414ff3e "*" is also not a single IP. --- diff --git a/include/stg/user_ips.h b/include/stg/user_ips.h index e55f99fa..52e5df77 100644 --- a/include/stg/user_ips.h +++ b/include/stg/user_ips.h @@ -166,7 +166,7 @@ return false; inline bool USER_IPS::OnlyOneIP() const { -if (ips.size() == 1 && ips.front().mask == 32) +if (ips.size() == 1 && ips.front().mask == 32 && ips.front().ip != 0) return true; return false;