#include <arpa/inet.h>
#include <regex.h>
#include <pthread.h>
-#include "list.h"
-#include "hostport.h"
#include "radsecproxy.h"
+#include "hostport.h"
#ifdef RADPROT_TCP
#include "debug.h"
void tcpsetsrcres() {
if (!srcres)
- srcres = resolvepassiveaddrinfo(protoopts ? protoopts->sourcearg : NULL, NULL, protodefs.socktype);
+ srcres =
+ resolvepassiveaddrinfo(protoopts ? protoopts->sourcearg : NULL,
+ AF_UNSPEC, NULL, protodefs.socktype);
}
int tcpconnect(struct server *server, struct timeval *when, int timeout, char *text) {