git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Do not flush indexes on stop (fixes #44).
[stg.git]
/
include
/
stg
/
user_ips.h
diff --git
a/include/stg/user_ips.h
b/include/stg/user_ips.h
index e55f99fa7fc114460681fcebe87c8639ef2ee259..52e5df77d7dba6e9e702ab634caef19cd3f49325 100644
(file)
--- 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;