From 2f8b3abb81417fb9722fbc7f17a2e7844f4ad8c1 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Wed, 29 Apr 2015 21:58:46 +0000 Subject: [PATCH] Avoid using hostname localhost as some systems don't resolve it Windows systems sometimes don't have localhost defined in the hosts file so use the IP address 127.0.0.1 instead. Merged from the wsjtx-1.5 branch git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5326 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- Configuration.cpp | 2 +- HRDTransceiver.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Configuration.cpp b/Configuration.cpp index 422cd6d4d..7a12ebbdf 100644 --- a/Configuration.cpp +++ b/Configuration.cpp @@ -1197,7 +1197,7 @@ void Configuration::impl::read_settings () decode_at_52s_ = settings_->value("Decode52",false).toBool (); rig_params_.poll_interval = settings_->value ("Polling", 0).toInt (); rig_params_.split_mode = settings_->value ("SplitMode", QVariant::fromValue (TransceiverFactory::split_mode_none)).value (); - udp_server_name_ = settings_->value ("UDPServer", "localhost").toString (); + udp_server_name_ = settings_->value ("UDPServer", "127.0.0.1").toString (); udp_server_port_ = settings_->value ("UDPServerPort", 2237).toUInt (); accept_udp_requests_ = settings_->value ("AcceptUDPRequests", false).toBool (); udpWindowToFront_ = settings_->value ("udpWindowToFront",false).toBool (); diff --git a/HRDTransceiver.cpp b/HRDTransceiver.cpp index b0c3c1c09..bf94541cb 100644 --- a/HRDTransceiver.cpp +++ b/HRDTransceiver.cpp @@ -21,7 +21,7 @@ namespace void HRDTransceiver::register_transceivers (TransceiverFactory::Transceivers * registry, int id) { - (*registry)[HRD_transceiver_name] = TransceiverFactory::Capabilities (id, TransceiverFactory::Capabilities::network, "localhost:7809", true); + (*registry)[HRD_transceiver_name] = TransceiverFactory::Capabilities (id, TransceiverFactory::Capabilities::network, true); } struct HRDMessage