Commit 31d7f390 authored by Raphael Defosseux's avatar Raphael Defosseux

fix(config): NSSF port number was not read from config file

parent ab1aa4f1
......@@ -616,6 +616,10 @@ int amf_config::load(const std::string& config_file) {
util::trim(address).c_str(), nssf_ipv4_addr,
"BAD IPv4 ADDRESS FORMAT FOR NSSF !");
nssf_addr.ipv4_addr = nssf_ipv4_addr;
if (!(nssf_cfg.lookupValue(AMF_CONFIG_STRING_PORT, nssf_port))) {
Logger::amf_app().error(AMF_CONFIG_STRING_PORT "failed");
throw(AMF_CONFIG_STRING_PORT "failed");
}
nssf_addr.port = nssf_port;
nssf_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