Fix handling of "*" as address in example server
@@ -2178,7 +2178,7 @@ int create_sock(Address &local_addr, const char *addr, const char *port,
hints.ai_socktype = SOCK_DGRAM;
hints.ai_flags = AI_PASSIVE;
- if (strcmp("addr", "*") == 0) {
+ if (strcmp(addr, "*") == 0) {
addr = nullptr;
}
