Commit 56193e4b authored by kharade's avatar kharade

Fix SBI port for UDM in case of FQDN resolution

Signed-off-by: default avatarkharade <rohan.kharade@openairinterface.org>
parent c140a19c
......@@ -555,7 +555,12 @@ int amf_config::load(const std::string& config_file) {
util::trim(address).c_str(), udm_ipv4_addr,
"BAD IPv4 ADDRESS FORMAT FOR UDM !");
udm_addr.ipv4_addr = udm_ipv4_addr;
udm_addr.port = udm_port;
// We hardcode nrf port from config for the moment
if (!(udm_cfg.lookupValue(AMF_CONFIG_STRING_PORT, udm_port))) {
Logger::amf_app().error(AMF_CONFIG_STRING_PORT "failed");
throw(AMF_CONFIG_STRING_PORT "failed");
}
udm_addr.port = udm_port;
udm_addr.api_version =
DEFAULT_SBI_API_VERSION; // TODO: get API version
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment