From 6a84bc9b6fd16ae6b19cdec98e3e51114e5a2a4b Mon Sep 17 00:00:00 2001 From: Ivan Date: Wed, 26 Nov 2025 15:41:50 -0600 Subject: [PATCH] Fix HTTPTunnelInterface initialization to ensure MTU optimization and server setup occur in the correct order --- HTTPInterface.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/HTTPInterface.py b/HTTPInterface.py index 1350114..754d73d 100755 --- a/HTTPInterface.py +++ b/HTTPInterface.py @@ -103,15 +103,19 @@ class HTTPTunnelInterface(Interface): self.HW_MTU = mtu self.online = False self.bitrate = HTTPTunnelInterface.BITRATE_GUESS - self.optimise_mtu() if mode == "server": self.listen_host = listen_host self.listen_port = listen_port - self.setup_server() else: self.server_url = server_url self.poll_interval = poll_interval + + self.optimise_mtu() + + if mode == "server": + self.setup_server() + else: self.setup_client() def _load_html_content(self):