Fixed UDP broadcast echo packets not being filtered.

pull/8/head
Mark Qvist 2021-08-19 17:05:07 +02:00
rodzic 8b6870fad8
commit 4fd3d26714
2 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -135,7 +135,12 @@ def client_disconnected(link):
def client_request(message, packet):
global serve_path
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

Wyświetl plik

@ -397,6 +397,7 @@ 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
if (packet.create_receipt == True and