mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-07 18:03:12 +02:00
9310fd3b4b
have that in dns.c. Also remove verify_hostname() from dns.c and integrate it in valid_host() which now takes a second argument named 'strict'. Call valid_host() with strict set to 1 if the hostname should be checked to be a valid DNS hostname, eg the host may not contain stuff like ':' or '/'. Use 0 otherwise for the loose check, eg if you are not sure if the passed host is an IP address or a host, or if it is for a vhost.