Skip to content

Commit 57df664

Browse files
authored
Merge pull request #64 from lawndoc/fix-errors
Fix errors
2 parents 40f170f + 092b7c1 commit 57df664

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: docker-compose.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
version: "3.9"
22
services:
3-
plexms:
3+
respotter:
44
container_name: respotter
55
image: ghcr.io/lawndoc/respotter:latest
66
network_mode: host
7+
cap_add:
8+
- NET_RAW
79
security_opt:
810
- label:disable
911
restart: always

Diff for: respotter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ def __init__(self,
8989
if subnet:
9090
try:
9191
network = ip_network(subnet)
92+
self.broadcast_ip = str(network.broadcast_address)
9293
except:
9394
self.log.error(f"[!] ERROR: could not parse subnet CIDR. Netbios protocol will be disabled.")
94-
self.broadcast_ip = str(network.broadcast_address)
9595
elif "nbns" not in self.excluded_protocols:
9696
self.log.error(f"[!] ERROR: subnet CIDR not configured. Netbios protocol will be disabled.")
9797
self.excluded_protocols.append("nbns")

0 commit comments

Comments
 (0)