Skip to content

Commit

Permalink
Merge pull request #64 from lawndoc/fix-errors
Browse files Browse the repository at this point in the history
Fix errors
  • Loading branch information
lawndoc authored Sep 5, 2024
2 parents 40f170f + 092b7c1 commit 57df664
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion respotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 57df664

Please sign in to comment.