summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--dispatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dispatch.c b/dispatch.c
index 624dd40..f4cda87 100644
--- a/dispatch.c
+++ b/dispatch.c
@@ -296,7 +296,7 @@ int main(int argc, char *argv[]) {
 			peek.len = len;
 
 			char *name = serverName();
-			if (!name || name[0] == '.' || name[0] == '/') {
+			if (!name || name[0] == '.' || strchr(name, '/')) {
 				alert(event.ptr[i].fd);
 				eventRemove(i);
 				continue;