diff --git a/locust/rpc/zmqrpc.py b/locust/rpc/zmqrpc.py index d5d5586129..f03ea9a204 100644 --- a/locust/rpc/zmqrpc.py +++ b/locust/rpc/zmqrpc.py @@ -64,6 +64,8 @@ def close(self, linger=None): def ipv4_only(self, host, port) -> bool: try: + if host == "*": + return False if str(csocket.getaddrinfo(host, port, proto=csocket.IPPROTO_TCP)).find("Family.AF_INET6") == -1: return True except gaierror as e: