Skip to content

Commit

Permalink
Merge pull request #960 from anarkiwi/skq
Browse files Browse the repository at this point in the history
skipcq for dependabot.
  • Loading branch information
anarkiwi authored Nov 9, 2023
2 parents bc022a9 + edb71e0 commit 7919f7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gamutrf/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ def process_rssi(self, record_args, sock):

def proxy_rssi(self, rssi_addr, record_args):
with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as sock:
# codeql[py/bind-socket-all-network-interfaces]
sock.bind((rssi_addr, RSSI_UDP_PORT)) # nosec
self.process_rssi(record_args, sock)

Expand All @@ -334,6 +335,7 @@ def serve_rssi(self):
logging.info(f"got request {record_args}")
if self.arguments.rssi_external:
logging.info("proxying external RSSI")
# codeql[py/bind-socket-all-network-interfaces]
self.proxy_rssi("0.0.0.0", record_args) # nosec
else:
center_freq = int(record_args["center_freq"])
Expand Down

0 comments on commit 7919f7d

Please sign in to comment.