guild-operators icon indicating copy to clipboard operation
guild-operators copied to clipboard

isValidIPv4 only returns 1 on invalid hostnames, but not invalid IPv4 addresses

Open TrevorBenson opened this issue 1 year ago • 0 comments

Describe the bug It appears that isValidIPv4 attempts to do both IPv4 validation and hostname/domainname validation. This causes almost any string to be valid, even IPv4 addresses. The only invalid values appear to be domain names that contain invalid characters like @,:? for example.

Expected behavior isValidIPv4 should return 1 on invalid IPv4 addresses.

Screenshots If applicable, add screenshots to help explain your problem.

Version:

  • OS: Debian slim
  • Product version: v13.2.2

TrevorBenson avatar Oct 19 '24 18:10 TrevorBenson