]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - pdns/webserver.hh
remove silly enum for AF_INET and AF_INET6 and in the process discovered auth webserv...
[thirdparty/pdns.git] / pdns / webserver.hh
index f627376b55542fbe0d468e4c487fe46381b039af..e9fabd282563c8e18d90004c839d10a52d46504c 100644 (file)
@@ -108,7 +108,7 @@ public:
 class Server
 {
 public:
-  Server(const string &localaddress, int port) : d_local(localaddress.empty() ? "0.0.0.0" : localaddress, port), d_server_socket(InterNetwork, Stream, 0) {
+  Server(const string &localaddress, int port) : d_local(localaddress.empty() ? "0.0.0.0" : localaddress, port), d_server_socket(d_local.sin4.sin_family, SOCK_STREAM, 0) {
     d_server_socket.setReuseAddr();
     d_server_socket.bind(d_local);
     d_server_socket.listen();