Fixed instance name from config being overwritten if option was not last in section

This commit is contained in:
Mark Qvist
2025-04-17 15:02:08 +02:00
parent a0f0d73204
commit 98d4f1c69e
+3 -1
View File
@@ -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