We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f17cfa commit 7f449a6Copy full SHA for 7f449a6
app/models/node.py
@@ -65,7 +65,7 @@ def validate_address(cls, v: str) -> str:
65
return v
66
except ValueError:
67
# Regex for domain validation
68
- if re.match(r"^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$", v):
+ if re.match(r"^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,14}$", v):
69
70
raise ValueError("Invalid address format, must be a valid IPv4/IPv6 or domain")
71
0 commit comments