mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-05-29 03:31:48 -04:00
Added option to specify shared instance type
This commit is contained in:
parent
c1673f39b6
commit
756029e5af
4 changed files with 88 additions and 29 deletions
|
@ -70,7 +70,7 @@ class LocalClientInterface(Interface):
|
|||
self.HW_MTU = 262144
|
||||
self.online = False
|
||||
|
||||
if socket_path != None and RNS.vendor.platformutils.use_af_unix(): self.socket_path = f"\0rns/{socket_path}"
|
||||
if socket_path != None and RNS.Reticulum.get_instance().use_af_unix: self.socket_path = f"\0rns/{socket_path}"
|
||||
else: self.socket_path = None
|
||||
|
||||
self.IN = True
|
||||
|
@ -350,7 +350,7 @@ class LocalServerInterface(Interface):
|
|||
self.online = False
|
||||
self.clients = 0
|
||||
|
||||
if socket_path != None and RNS.vendor.platformutils.use_af_unix(): self.socket_path = f"\0rns/{socket_path}"
|
||||
if socket_path != None and RNS.Reticulum.get_instance().use_af_unix: self.socket_path = f"\0rns/{socket_path}"
|
||||
else: self.socket_path = None
|
||||
|
||||
self.IN = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue