From 5f5db963674924aea5350c5a2217bce13414ff3e Mon Sep 17 00:00:00 2001
From: Maxim Mamontov <faust.madf@gmail.com>
Date: Fri, 18 Dec 2015 23:49:51 +0200
Subject: [PATCH 1/1] "*" is also not a single IP.

---
 include/stg/user_ips.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
2.44.2