From 8c8619d939e57c42dcb28c3f680ec9a3c6d075fa Mon Sep 17 00:00:00 2001 From: Shulhan Date: Fri, 10 Jun 2022 22:20:10 +0700 Subject: all: fixes HTTP API for updating environment There are two issues when updating environment. One is on the front, where debug value is send as string. Another one is the back, where new environment overwrite all of options where it should only update only DNS server options and Debug fields. --- _www/environment/index.html | 3 ++- _www/rescached.js | 6 +++--- environment.go | 4 ++-- httpd.go | 29 +++++++++++++---------------- memfs_generate.go | 16 ++++++++-------- 5 files changed, 28 insertions(+), 30 deletions(-) diff --git a/_www/environment/index.html b/_www/environment/index.html index 6698df4..3c439ae 100644 --- a/_www/environment/index.html +++ b/_www/environment/index.html @@ -91,7 +91,7 @@
- + ?