mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-07-22 06:29:17 -04:00
Fixed instance name from config being overwritten if option was not last in section
This commit is contained in:
parent
a0f0d73204
commit
98d4f1c69e
1 changed files with 3 additions and 1 deletions
|
@ -267,6 +267,9 @@ class Reticulum:
|
|||
self.rpc_key = None
|
||||
self.rpc_type = "AF_INET"
|
||||
|
||||
if RNS.vendor.platformutils.use_af_unix():
|
||||
self.local_socket_path = "default"
|
||||
|
||||
self.ifac_salt = Reticulum.IFAC_SALT
|
||||
|
||||
self.requested_loglevel = loglevel
|
||||
|
@ -455,7 +458,6 @@ class Reticulum:
|
|||
if option == "instance_name":
|
||||
value = self.config["reticulum"][option]
|
||||
self.local_socket_path = value
|
||||
else: self.local_socket_path = "default"
|
||||
if option == "shared_instance_port":
|
||||
value = int(self.config["reticulum"][option])
|
||||
self.local_interface_port = value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue