Allow numeric host only in mud_bind()

This commit is contained in:
angt
2016-02-03 08:57:29 +01:00
parent 0ce0243f85
commit 64e768e6e1

2
mud.c
View File

@@ -243,7 +243,7 @@ int mud_bind (struct mud *mud, const char *host, const char *port)
if (!host || !port)
return -1;
struct addrinfo *p, *ai = mud_addrinfo(host, port, AI_NUMERICSERV|AI_PASSIVE);
struct addrinfo *p, *ai = mud_addrinfo(host, port, AI_NUMERICHOST|AI_NUMERICSERV|AI_PASSIVE);
if (!ai)
return -1;