diff --git a/pwnlib/util/net.py b/pwnlib/util/net.py index fcb0a44a8..823874e99 100644 --- a/pwnlib/util/net.py +++ b/pwnlib/util/net.py @@ -264,7 +264,7 @@ def sockinfos(addr, f, t): def match(c): laddrs = sockinfos(c.laddr, c.family, c.type) raddrs = sockinfos(c.raddr, c.family, c.type) - if not (raddrs & remote): + if not (laddrs & remote): return False if local is None: return True