Commit Diff


commit - 15209ad9ed6d1c8a506a7406fb32e35f1fd105bf
commit + b4d409cf293cdf029cefd19a531463a334bc065b
blob - f96e0a349e8077d1491a6b78ef484b73c821ffd1
blob + 8d08c12a96f72d7484dfd977f4c49a65ec618c65
--- server.c
+++ server.c
@@ -22,6 +22,7 @@
 #include <assert.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <fnmatch.h>
 #include <string.h>
 
 #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;
 	}