mirror of
https://github.com/markqvist/Reticulum
synced 2026-11-27 13:52:15 +00:00
Fixed UDP broadcast echo packets not being filtered.
This commit is contained in:
1 parent
8b6870fad8
commit
4fd3d26714
2 files changed
+8
-2
No files matched your search
@@ -135,7 +135,12 @@ def client_disconnected(link):
|
||||
|
||||
def client_request(message, packet):
|
||||
global serve_path
|
||||
filename = message.decode("utf-8")
|
||||
|
||||
try:
|
||||
filename = message.decode("utf-8")
|
||||
except Exception as e:
|
||||
filename = None
|
||||
|
||||
if filename in list_files():
|
||||
try:
|
||||
# If we have the requested file, we'll
|
||||
|
||||
+2
-1
@@ -397,8 +397,9 @@ class Transport:
|
||||
if sent:
|
||||
packet.sent = True
|
||||
packet.sent_at = time.time()
|
||||
Transport.packet_hashlist.append(packet.packet_hash)
|
||||
|
||||
# Don't generate receipt if it has been explicitly disabled
|
||||
# Don't generate receipt if it has been explicitly disabled
|
||||
if (packet.create_receipt == True and
|
||||
# Only generate receipts for DATA packets
|
||||
packet.packet_type == RNS.Packet.DATA and
|
||||
|
||||
Reference in new issue
Block a user