--- gvpe/src/sockinfo.C 2003/10/16 02:41:21 1.10 +++ gvpe/src/sockinfo.C 2004/04/02 14:42:45 1.12 @@ -19,7 +19,6 @@ #include "config.h" -#include #include #include "gettext.h" @@ -65,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_); } @@ -122,6 +122,11 @@ && conf->tcp_port) protocols |= PROT_TCPv4; + if (conf + && prot & PROTv4 + && conf->protocols & PROT_DNSv4) + protocols |= PROT_DNSv4; + return protocols; }