Przeglądaj źródła

Remove unneeded addrinfo flag which doesn't exist on MacOS.

master
Richard Nyberg 16 lat temu
rodzic
commit
3b6ae02d52
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      btpd/net.c

+ 1
- 1
btpd/net.c Wyświetl plik

@@ -692,7 +692,7 @@ net_init(void)
char portstr[6];
struct addrinfo hints, *res, *ai;
bzero(&hints, sizeof(hints));
hints.ai_flags = AI_ADDRCONFIG | AI_PASSIVE | AI_NUMERICSERV;
hints.ai_flags = AI_ADDRCONFIG | AI_PASSIVE;
hints.ai_family = net_af_spec();
hints.ai_socktype = SOCK_STREAM;
snprintf(portstr, sizeof(portstr), "%hd", net_port);


Ładowanie…
Anuluj
Zapisz