Replace legacy IPv4 APIs

This commit is contained in:
2026-06-24 14:24:43 -06:00
parent c9b14d7c45
commit 97fcf1d5fc
5 changed files with 22 additions and 5 deletions

View File

@@ -468,7 +468,7 @@ create_mask (session * sess, char *mask, char *mode, char *typestr, int deop)
type = prefs.hex_irc_ban_type;
buf[0] = 0;
if (inet_addr (fullhost) != (guint32) -1) /* "fullhost" is really a IP number */
if (net_parse_ipv4 (fullhost, &(guint32){0})) /* "fullhost" is really a IP number */
{
lastdot = strrchr (fullhost, '.');
if (!lastdot)