From 03695565ba78f71a55cb24cd1d4bd83e74f9ba69 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 14 Sep 2022 00:13:20 +0200 Subject: [PATCH] Added rnsd warning on start as client --- RNS/Utilities/rnsd.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/RNS/Utilities/rnsd.py b/RNS/Utilities/rnsd.py index 1d0dee1..d659eae 100755 --- a/RNS/Utilities/rnsd.py +++ b/RNS/Utilities/rnsd.py @@ -38,7 +38,11 @@ def program_setup(configdir, verbosity = 0, quietness = 0, service = False): targetloglevel = None reticulum = RNS.Reticulum(configdir=configdir, loglevel=targetloglevel) - RNS.log("Started rnsd version {version}".format(version=__version__), RNS.LOG_NOTICE) + if reticulum.is_connected_to_shared_instance: + RNS.log("Started rnsd version {version} connected to another shared local instance, this is probably NOT what you want!".format(version=__version__), RNS.LOG_WARNING) + else: + RNS.log("Started rnsd version {version}".format(version=__version__), RNS.LOG_NOTICE) + while True: time.sleep(1)