diff --git a/daemon/config.cpp b/daemon/config.cpp index 83ecd9f..a954408 100644 --- a/daemon/config.cpp +++ b/daemon/config.cpp @@ -67,11 +67,11 @@ std::shared_ptr Config::parse(const std::string& filename) { config.sample_rate_ = 44100; boost::system::error_code ec; ip::address_v4::from_string(config.rtp_mcast_base_.c_str(), ec); - if (!ec) { + if (ec) { config.rtp_mcast_base_ = "239.1.0.1"; } ip::address_v4::from_string(config.sap_mcast_addr_.c_str(), ec); - if (!ec) { + if (ec) { config.sap_mcast_addr_ = "224.2.127.254"; } if (config.ptp_domain_ > 127)