--- gvpe/src/sockinfo.C 2005/03/03 16:54:34 1.15 +++ gvpe/src/sockinfo.C 2005/04/26 00:55:56 1.21 @@ -16,7 +16,7 @@ You should have received a copy of the GNU General Public License along with gvpe; if not, write to the Free Software - Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "config.h" @@ -64,7 +64,9 @@ sockinfo::set (const conf_node *conf, u8 prot_) { if (prot_ == PROT_DNSv4) - set (conf->dns_hostname, conf->dns_hostname ? conf->dns_port : 0, prot_); + { + host = htonl (conf->id); port = 0; prot = prot_; + } else set (conf->hostname, prot_ == PROT_UDPv4 ? conf->udp_port @@ -171,17 +173,6 @@ port = htons (conf->tcp_port); return true; } - -#if ENABLE_DNS - if (conf - && prot_ & PROT_DNSv4 - && conf->protocols & PROT_DNSv4 - && conf->dns_port) - { - set (::conf.dns_forw_host, ::conf.dns_forw_port, prot_); - return true; - } -#endif } return false;