File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
cpp/wedpr-helper/ppc-tools/src/config Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -667,8 +667,12 @@ void PPCConfig::loadMPCConfig(boost::property_tree::ptree const& _pt)
667667 m_mpcConfig.mpcRootPathNoGateway = _pt.get <std::string>(" mpc.mpc_root_path_no_gateway" , " ./" );
668668 m_mpcConfig.readPerBatchLines = _pt.get <std::uint64_t >(" mpc.read_per_batch_lines" , 100000 );
669669 m_mpcConfig.spdzConnectedPort = _pt.get <int >(" spdz.connected_port" , 5894 );
670- m_mpcConfig.spdzConnectedIP = _pt.get <std::string>(" transport.host_ip" , " " );
671670
671+ m_mpcConfig.spdzConnectedIP = _pt.get <std::string>(" transport.connected_external_ip" , " " );
672+ if (m_mpcConfig.spdzConnectedIP .empty ()) {
673+ m_mpcConfig.spdzConnectedIP = _pt.get <std::string>(" transport.host_ip" , " " );
674+ }
675+
672676 PPCConfig_LOG (INFO) << LOG_DESC (" spdzConnectedPort" ) << LOG_KV (" spdzConnectedIP" , m_mpcConfig.spdzConnectedIP ) << LOG_KV (" spdzConnectedPort" , m_mpcConfig.spdzConnectedPort );
673677
674678 m_mpcConfig.threadPoolSize = _pt.get <int >(" mpc.async_thread_pool_size" , -1 );
You can’t perform that action at this time.
0 commit comments