--- gvpe/src/sockinfo.C 2003/04/08 02:00:54 1.9 +++ gvpe/src/sockinfo.C 2004/04/02 14:42:45 1.12 @@ -1,5 +1,6 @@ /* sockinfo.C -- socket address management + Copyright (C) 2003 Marc Lehmann This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,7 +19,6 @@ #include "config.h" -#include #include #include "gettext.h" @@ -64,6 +64,7 @@ set (conf->hostname, prot_ == PROT_UDPv4 ? conf->udp_port : prot_ == PROT_TCPv4 ? conf->tcp_port + : prot_ == PROT_DNSv4 ? conf->dns_port : 0, prot_); } @@ -121,6 +122,11 @@ && conf->tcp_port) protocols |= PROT_TCPv4; + if (conf + && prot & PROTv4 + && conf->protocols & PROT_DNSv4) + protocols |= PROT_DNSv4; + return protocols; }