From 0efa35b00d840d9729a732b86df171a971df793f Mon Sep 17 00:00:00 2001 From: doctor_dev Date: Fri, 30 May 2025 17:59:59 +0000 Subject: [PATCH 1/3] forgot to import re in conf.py --- scripts/conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/conf.py b/scripts/conf.py index 3c2728e..9b79107 100644 --- a/scripts/conf.py +++ b/scripts/conf.py @@ -1,3 +1,5 @@ +import re + ROOT_PATH = '/srv/darknet-lantern/' STATIC_PATH = ROOT_PATH + 'www/' TEMPLATE_PATH = ROOT_PATH + 'templates/' From abb3f97a9123d386c0a2f481461ceaca00c3bd94 Mon Sep 17 00:00:00 2001 From: doctor_dev Date: Fri, 30 May 2025 18:22:29 +0000 Subject: [PATCH 2/3] another minor fix on the option 4 --- scripts/lantern.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lantern.py b/scripts/lantern.py index 521143d..304afc9 100644 --- a/scripts/lantern.py +++ b/scripts/lantern.py @@ -535,7 +535,7 @@ Maintenance: print_colors('[+] Syncing official webrings to local webrings') - webring_df = verify_official_participants_registered() + webring_df = get_local_webring_participants() current_instance = get_current_instance() From c98f67fbf34d96d9e8f7c168a1620b6b754285f6 Mon Sep 17 00:00:00 2001 From: doctor_dev Date: Fri, 30 May 2025 19:40:25 +0000 Subject: [PATCH 3/3] minor fix for conf integraion in utils --- scripts/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/utils.py b/scripts/utils.py index 904b75d..78530a1 100644 --- a/scripts/utils.py +++ b/scripts/utils.py @@ -60,7 +60,7 @@ def IsXFTPServerValid(url: str) -> bool: Returns True if URL is a valid SimpleX XFTP Server URL False otherwise """ - return conf.RecognizeSimplexType(url) == 'xftp' + return RecognizeSimplexType(url) == 'xftp' # stub function def IsSMPServerValid(url: str) -> bool: @@ -68,7 +68,7 @@ def IsSMPServerValid(url: str) -> bool: Returns True if URL is a valid SimpleX SMP Server URL False otherwise """ - return conf.RecognizeSimplexType(url) == 'smp' + return RecognizeSimplexType(url) == 'smp' def IsClearnetLinkValid(url: str) -> bool: """ @@ -242,7 +242,7 @@ def IsNameValid(name: str) -> bool: Check the parameter name only contains [a-zA-Z0-9] and is 64 chars long. """ try: - return bool(VALID_NAME_PATTERN.fullmatch(name.strip())) + return bool(conf.VALID_NAME_PATTERN.fullmatch(name.strip())) except Exception: return False