git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow to build sgconf on Darwin.
[stg.git]
/
projects
/
stargazer
/
users_impl.cpp
diff --git
a/projects/stargazer/users_impl.cpp
b/projects/stargazer/users_impl.cpp
index dfdc86342e4e35c2dfa92527d64fc9ec380f795e..c4f63c6476763548a8f29da093d4ae9aea5f8797 100644
(file)
--- a/
projects/stargazer/users_impl.cpp
+++ b/
projects/stargazer/users_impl.cpp
@@
-702,7
+702,9
@@
std::list<USER_IMPL>::const_iterator iter;
iter = users.begin();
while (iter != users.end())
{
iter = users.begin();
while (iter != users.end())
{
- if (iter->GetLogin() != login && iter->GetProperty().ips.Get().IsIPInIPS(ip))
+ if (iter->GetLogin() != login &&
+ !iter->GetProperty().ips.Get().IsAnyIP() &&
+ iter->GetProperty().ips.Get().IsIPInIPS(ip))
{
if (user != NULL)
*user = &(*iter);
{
if (user != NULL)
*user = &(*iter);