From 98d4f1c69e8e31dc0af5f19c0aae9c1f88cb0e14 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 17 Apr 2025 15:02:08 +0200 Subject: [PATCH] Fixed instance name from config being overwritten if option was not last in section --- RNS/Reticulum.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/RNS/Reticulum.py b/RNS/Reticulum.py index c0769a4..cc3c9ba 100755 --- a/RNS/Reticulum.py +++ b/RNS/Reticulum.py @@ -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