Skip to content

Commit

Permalink
feat: Accept DNS pattern as seed nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
alpeto9 committed May 22, 2024
1 parent 89a3e08 commit 3804d3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node-runner-cli/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ def merge(source, destination):
@staticmethod
def parse_trustednode(trustednode):
import re

regex = r"radix://(.*)@((\d{1,3}\.){3}\d{1,3}|[a-zA-Z0-9-]+\.[a-zA-Z]{2,})$"
if not bool(
re.match(r"radix://(.*)@\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$", trustednode)
re.match(regex, trustednode)
):
print(
f"Trusted node {trustednode} does match pattern radix://public_key@ip. Please enter right value"
Expand Down

0 comments on commit 3804d3c

Please sign in to comment.