From 7df1ea3a0dafc3c7d92da3555c3638bd97776a65 Mon Sep 17 00:00:00 2001 From: Ilya Sosnovsky Date: Fri, 20 Nov 2020 19:11:58 +0300 Subject: [PATCH] Bug fixes; Small changes for slave UI --- ccd.tpl | 2 +- frontend/src/main.js | 2 +- frontend/static/index.html | 29 ++++++++++++++++++++++------- main.go | 2 +- 4 files changed, 25 insertions(+), 10 deletions(-) diff --git a/ccd.tpl b/ccd.tpl index 2a6fa00..a197fd9 100644 --- a/ccd.tpl +++ b/ccd.tpl @@ -2,5 +2,5 @@ ifconfig-push {{ .ClientAddress }} 255.255.255.255 {{- end }} {{- range $route := .CustomRoutes }} -push "route {{ $route.Address }} {{ $route.Mask }}" ; {{ $route.Description }} +push "route {{ $route.Address }} {{ $route.Mask }}" # {{ $route.Description }} {{- end }} diff --git a/frontend/src/main.js b/frontend/src/main.js index bff18d6..1d8a995 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -207,7 +207,7 @@ new Vue({ data.append('username', _this.username); axios.request(axios_cfg('api/user/disconnect', data, 'form')) .then(function(response) { - _this.u.ccd = response.data; + console.log(response.data); }); }) }, diff --git a/frontend/static/index.html b/frontend/static/index.html index b34ab3a..48dff1d 100644 --- a/frontend/static/index.html +++ b/frontend/static/index.html @@ -16,7 +16,7 @@ :row-style-class="rowStyleClassFn" :search-options="{ enabled: true}" >
- + Slave - last sync: {{ lastSync }}
@@ -115,23 +115,38 @@ Address Mask Description - Action + Action - {{ customRoute.Address }} - {{ customRoute.Mask }} - {{ customRoute.Description }} - +
+ {{ customRoute.Address }} +
+ + + +
+ {{ customRoute.Mask }} +
+ + + +
+ {{ customRoute.Description }} +
+ + + + - + diff --git a/main.go b/main.go index 665ea5a..83b4279 100644 --- a/main.go +++ b/main.go @@ -758,7 +758,7 @@ func syncWithMaster() { // https://community.openvpn.net/openvpn/ticket/623 func crlFix() { os.Chmod(*easyrsaDirPath + "/pki", 0755) - err := os.Chmod(*easyrsaDirPath + "/pki/crl.pem", 0640) + err := os.Chmod(*easyrsaDirPath + "/pki/crl.pem", 0644) if err != nil { log.Println(err) }