host = s;
}
- addrinfo hints = { 0, family_to_sys(family), 0, 0, 0, 0, 0, 0 };
+ unsigned flags = 0;
+ if(host=="*")
+ {
+ flags = AI_PASSIVE;
+ host = string();
+ }
+
+ addrinfo hints = { flags, family_to_sys(family), 0, 0, 0, 0, 0, 0 };
addrinfo *res;
const char *chost = (host.empty() ? 0 : host.c_str());
const char *cserv = (serv.empty() ? 0 : serv.c_str());