mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 23:37:22 +00:00
[SBI] Make 'global' configuration optional instead of mandatory (#3466)
Previously, the global configuration section was required for NF to start, which differed from earlier versions where it was optional. This commit modifies the implementation to make the global section optional again, allowing NF to start without explicitly defining global settings. This change restores the previous behavior and improves usability for users who do not need to customize global settings.
This commit is contained in:
parent
1f42ddace1
commit
2031f7d8a1
4 changed files with 9 additions and 5 deletions
|
|
@ -257,9 +257,14 @@ static int read_config(void)
|
|||
|
||||
static int context_prepare(void)
|
||||
{
|
||||
int rv;
|
||||
|
||||
#define USRSCTP_LOCAL_UDP_PORT 9899
|
||||
ogs_app()->usrsctp.udp_port = USRSCTP_LOCAL_UDP_PORT;
|
||||
|
||||
rv = ogs_app_global_conf_prepare();
|
||||
if (rv != OGS_OK) return rv;
|
||||
|
||||
return OGS_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue