diff --git a/server.c b/server.c index f96e0a3..8d08c12 100644 --- a/server.c +++ b/server.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include "gmid.h" @@ -185,7 +186,7 @@ handle_handshake(struct pollfd *fds, struct client *c) if (!strcmp(h->domain, "*")) break; - if (servname != NULL && !strcmp(h->domain, servname)) + if (servname != NULL && !fnmatch(h->domain, servname, 0)) break; }