It's state, not config.
This commit is contained in:
@@ -54,7 +54,7 @@ func (api *API) VpnUpdateConfig(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
// Resync nftables so the VPN listen port is automatically allowed/removed
|
||||
if globalCfg, err := config.LoadGlobalConfig(api.getGlobalConfigPath()); err == nil {
|
||||
if globalCfg, err := config.LoadState(api.statePath()); err == nil {
|
||||
go api.syncNftablesOnly(globalCfg)
|
||||
}
|
||||
respondJSON(w, http.StatusOK, map[string]string{"message": "VPN configuration saved"})
|
||||
|
||||
Reference in New Issue
Block a user