diff --git a/docker-compose.yaml b/docker-compose.yaml index 70e1822..23c342c 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,9 +1,11 @@ version: "3.9" services: - plexms: + respotter: container_name: respotter image: ghcr.io/lawndoc/respotter:latest network_mode: host + cap_add: + - NET_RAW security_opt: - label:disable restart: always diff --git a/respotter.py b/respotter.py index ac526d6..09015e2 100644 --- a/respotter.py +++ b/respotter.py @@ -89,9 +89,9 @@ def __init__(self, if subnet: try: network = ip_network(subnet) + self.broadcast_ip = str(network.broadcast_address) except: self.log.error(f"[!] ERROR: could not parse subnet CIDR. Netbios protocol will be disabled.") - self.broadcast_ip = str(network.broadcast_address) elif "nbns" not in self.excluded_protocols: self.log.error(f"[!] ERROR: subnet CIDR not configured. Netbios protocol will be disabled.") self.excluded_protocols.append("nbns")