mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-22 21:50:18 +00:00
Improved status display for I2P interfaces
This commit is contained in:
parent
3af5a8f3ed
commit
a6dbc53209
@ -562,7 +562,8 @@ class I2PInterfacePeer(Interface):
|
|||||||
self.IN = False
|
self.IN = False
|
||||||
|
|
||||||
if hasattr(self, "parent_interface") and self.parent_interface != None:
|
if hasattr(self, "parent_interface") and self.parent_interface != None:
|
||||||
self.parent_interface.clients -= 1
|
if self.parent_interface.clients > 0:
|
||||||
|
self.parent_interface.clients -= 1
|
||||||
|
|
||||||
if self in RNS.Transport.interfaces:
|
if self in RNS.Transport.interfaces:
|
||||||
if not self.initiator:
|
if not self.initiator:
|
||||||
|
@ -100,7 +100,7 @@ def program_setup(configdir, dispall=False, verbosity = 0):
|
|||||||
clients_string = "Serving : "+str(cnum)+spec_str
|
clients_string = "Serving : "+str(cnum)+spec_str
|
||||||
elif name.startswith("I2PInterface["):
|
elif name.startswith("I2PInterface["):
|
||||||
if "i2p_connectable" in ifstat and ifstat["i2p_connectable"] == True:
|
if "i2p_connectable" in ifstat and ifstat["i2p_connectable"] == True:
|
||||||
cnum = max(clients-1,0)
|
cnum = clients
|
||||||
if cnum == 1:
|
if cnum == 1:
|
||||||
spec_str = " connected I2P endpoint"
|
spec_str = " connected I2P endpoint"
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user