mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-07-01 19:06:41 +00:00
minor fix for conf integraion in utils
This commit is contained in:
parent
abb3f97a91
commit
c98f67fbf3
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue