Implemented MTU autoconfiguration on interfaces

This commit is contained in:
Mark Qvist 2025-01-14 18:17:53 +01:00
parent 80dc567a53
commit e3a716224d
3 changed files with 35 additions and 3 deletions

View file

@ -52,6 +52,7 @@ class ThreadingTCPServer(socketserver.ThreadingMixIn, socketserver.TCPServer):
class LocalClientInterface(Interface):
RECONNECT_WAIT = 8
AUTOCONFIGURE_MTU = True
def __init__(self, owner, name, target_port = None, connected_socket=None):
super().__init__()
@ -86,7 +87,7 @@ class LocalClientInterface(Interface):
self.connect()
self.owner = owner
self.bitrate = 1000*1000*1000
self.bitrate = 1_000_000_000
self.online = True
self.writing = False
@ -288,6 +289,7 @@ class LocalClientInterface(Interface):
class LocalServerInterface(Interface):
AUTOCONFIGURE_MTU = True
def __init__(self, owner, bindport=None):
super().__init__()