mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-08-13 16:55:52 -04:00
Added TCP client reconnection on TCP socket drop
This commit is contained in:
parent
6362e04567
commit
65e8487b39
7 changed files with 84 additions and 8 deletions
|
@ -127,6 +127,10 @@ class LocalClientInterface(Interface):
|
|||
if self in RNS.Transport.local_client_interfaces:
|
||||
RNS.Transport.local_client_interfaces.remove(self)
|
||||
|
||||
RNS.log("The interface "+str(self)+" experienced an unrecoverable error and is being torn down. Restart Reticulum to attempt to open this interface again.", RNS.LOG_ERROR)
|
||||
if RNS.Reticulum.panic_on_interface_error:
|
||||
RNS.panic()
|
||||
|
||||
|
||||
def __str__(self):
|
||||
return "LocalInterface["+str(self.target_port)+"]"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue