--- gvpe/src/sockinfo.C 2005/03/05 19:13:15 1.16 +++ gvpe/src/sockinfo.C 2007/12/04 15:01:12 1.22 @@ -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" @@ -28,6 +28,9 @@ #include "sockinfo.h" #include "slog.h" +#include +#include + // all ipv4-based protocols #define PROTv4 (PROT_UDPv4 | PROT_TCPv4 | PROT_ICMPv4 | PROT_IPv4 | PROT_DNSv4) @@ -65,7 +68,7 @@ { if (prot_ == PROT_DNSv4) { - host = 0x01010101; port = htons (conf->id); prot = prot_; + host = htonl (conf->id); port = 0; prot = prot_; } else set (conf->hostname, @@ -173,17 +176,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;