Skip to content

Commit

Permalink
Add patch for default eupf cmd config [issue #587]
Browse files Browse the repository at this point in the history
Details: #587
  • Loading branch information
krezefal committed Jan 14, 2025
1 parent 307b80a commit 71d0bb8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ func init() {
v.SetDefault("ueip_pool", "10.60.0.0/24")
v.SetDefault("teid_pool", 65535)

if v.GetString("n9_address") == "n3addr" {
v.Set("n9_address", v.GetString("n3_address"))
}

v.SetConfigFile(*configPath)

v.SetEnvPrefix("upf")
Expand Down Expand Up @@ -150,10 +154,6 @@ func (c *UpfConfig) Validate() error {
c.UEIPPool = ""
}

if c.N9Address == "n3addr" {
c.N9Address = c.N3Address
}

return nil
}

Expand Down

0 comments on commit 71d0bb8

Please sign in to comment.