From 16d6885a88aec8fff716c4b0577ce59bb3f7305a Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sun, 31 Jul 2022 18:11:40 +0800 Subject: [PATCH] Fix radio button and add description --- src/components/settings/ReverseProxy.vue | 12 ++++++++---- src/languages/en.js | 1 + 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/components/settings/ReverseProxy.vue b/src/components/settings/ReverseProxy.vue index 85046cc20..0fab76291 100644 --- a/src/components/settings/ReverseProxy.vue +++ b/src/components/settings/ReverseProxy.vue @@ -103,12 +103,12 @@ v-model="settings.trustProxy" class="form-check-input" type="radio" - name="flexRadioDefault" + name="trustProxyYes" :value="true" required />
@@ -121,10 +121,14 @@ :value="false" required /> -
+ +
+ {{ $t("trustProxyDescription") }} +
diff --git a/src/languages/en.js b/src/languages/en.js index 3c3cdff41..2d66154de 100644 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -540,4 +540,5 @@ export default { "Domain": "Domain", "Workstation": "Workstation", disableCloudflaredNoAuthMsg: "You are in No Auth mode, password is not require.", + trustProxyDescription: "Trust 'X-Forwarded-*' headers. If you want to get the correct client IP and your Uptime Kuma is behind such as Nginx or Apache, you should enable this.", };