Skip to content

Commit

Permalink
Enforce config save on port forwarding settings change
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Litvinov <jnashicq@gmail.com>
  • Loading branch information
Zensey committed Jan 26, 2024
1 parent 88c4507 commit dcd8ec4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gobridge/gobridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ func GoSetNetworkConfig(s *C.NSConfig) {
mod.Config.EnablePortForwarding = bool(s.enablePortForwarding)
mod.Config.PortRangeBegin = int(s.portRangeBegin)
mod.Config.PortRangeEnd = int(s.portRangeEnd)
mod.Config.Save()

ap.TriggerAction("restart")
}
Expand Down

0 comments on commit dcd8ec4

Please sign in to comment.