FQDN Validation: FQDNs with fourth-level domain aren't considered valid #180
Labels
accepted
Issue is confirmed and will be worked on
bug
Confirmed bug or unexpected behavior
fixed-in-next-release
Issue has already been fixed in the next release
Bug Description
If I sumbit an FQDN with a fourth-level domain, hyperglass responds with this error: 'XXX is not a valid Traceroute target'.
An example of valid domains that trigger this error are:
Expected behavior
hyperglass should consider these domains valid and proceed with DNS resolution
Possible Solution
Replace fqdnPattern regex with:
/^(?!:\/\/)([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-][a-zA-Z0-9-]+\.[a-zA-Z-]{2,6}?$/im
The text was updated successfully, but these errors were encountered: