]> git.stg.codes - stg.git/blobdiff - projects/stargazer/users_impl.cpp
Fixed stupid bugs in BPF capturer.
[stg.git] / projects / stargazer / users_impl.cpp
index dfdc86342e4e35c2dfa92527d64fc9ec380f795e..c4f63c6476763548a8f29da093d4ae9aea5f8797 100644 (file)
@@ -702,7 +702,9 @@ std::list<USER_IMPL>::const_iterator iter;
 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);