guild-operators
guild-operators copied to clipboard
isValidIPv4 only returns 1 on invalid hostnames, but not invalid IPv4 addresses
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