From 47ed16ae60fb0381636d35fc8dc7b4d128c14346 Mon Sep 17 00:00:00 2001 From: Gernot Vormayr Date: Sun, 8 Feb 2026 23:52:30 +0100 Subject: [PATCH] Limit maximum TLS version in ftp_server to 1.2 This might fix (#58) getting uploads from the linux version of the BambuStudio network plugin. Issue observer is connection resets with larger uploads (somewhere >80k). --- backend/app/services/virtual_printer/ftp_server.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/app/services/virtual_printer/ftp_server.py b/backend/app/services/virtual_printer/ftp_server.py index 6b5d6382b..36a9cb45e 100644 --- a/backend/app/services/virtual_printer/ftp_server.py +++ b/backend/app/services/virtual_printer/ftp_server.py @@ -504,6 +504,7 @@ class VirtualPrinterFTPServer: self._ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) self._ssl_context.load_cert_chain(str(self.cert_path), str(self.key_path)) self._ssl_context.minimum_version = ssl.TLSVersion.TLSv1_2 + self._ssl_context.maximum_version = ssl.TLSVersion.TLSv1_2 # Use standard TLS settings for compatibility self._ssl_context.set_ciphers("HIGH:!aNULL:!MD5:!RC4")