From d256a34498249a8a21511101614636a4021179f9 Mon Sep 17 00:00:00 2001 From: Ivan Date: Wed, 26 Nov 2025 15:39:14 -0600 Subject: [PATCH] Fix HTTPTunnelInterface initialization --- HTTPInterface.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/HTTPInterface.py b/HTTPInterface.py index 00202a6..1350114 100755 --- a/HTTPInterface.py +++ b/HTTPInterface.py @@ -85,11 +85,6 @@ class HTTPTunnelInterface(Interface): if mode == "client" and server_url is None: raise ValueError(f"No server_url specified for client mode in {self}") - self.HW_MTU = mtu - self.online = False - self.bitrate = HTTPTunnelInterface.BITRATE_GUESS - self.optimise_mtu() - self.owner = owner self.mode = mode self.mtu = mtu @@ -105,6 +100,11 @@ class HTTPTunnelInterface(Interface): self._send_queue = Queue() self._stop_event = Event() + 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