Maint: use VPN settings instead of OpenVPN in loop
This commit is contained in:
@@ -96,7 +96,8 @@ func (h *openvpnHandler) setStatus(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
func (h *openvpnHandler) getSettings(w http.ResponseWriter) {
|
||||
settings, _ := h.looper.GetSettings()
|
||||
vpnSettings, _ := h.looper.GetSettings()
|
||||
settings := vpnSettings.OpenVPN
|
||||
settings.User = "redacted"
|
||||
settings.Password = "redacted"
|
||||
encoder := json.NewEncoder(w)
|
||||
|
||||
Reference in New Issue
Block a user