Firewall added & some fixes
This commit is contained in:
@@ -62,10 +62,10 @@ func HandleNATSave(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
if err := nat.ApplyRules(&cfg); err != nil {
|
||||
if err := applyAllRules(appCfg); err != nil {
|
||||
fail(w, http.StatusInternalServerError, "apply: "+err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
ok(w, map[string]string{"message": "nat applied"})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user