aboutsummaryrefslogtreecommitdiffstats
path: root/custom
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2022-07-13 09:07:16 +0800
committerGitHub <noreply@github.com>2022-07-13 09:07:16 +0800
commitf67a1030b308a24cca13ff788f7b7119f0404580 (patch)
tree2f5d8777096f84bf4443070fa379ec4fd3034332 /custom
parentd94f517643480369665eb37db31c9ddd700e07b3 (diff)
downloadgitea-f67a1030b308a24cca13ff788f7b7119f0404580.tar.gz
gitea-f67a1030b308a24cca13ff788f7b7119f0404580.zip
Add tests for the host checking logic, clarify the behaviors (#20328)
Before, the combination of AllowedDomains/BlockedDomains/AllowLocalNetworks is confusing. This PR adds tests for the logic, clarify the behaviors.
Diffstat (limited to 'custom')
-rw-r--r--custom/conf/app.example.ini1
1 files changed, 1 insertions, 0 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini
index fb43ea95a1..0870894894 100644
--- a/custom/conf/app.example.ini
+++ b/custom/conf/app.example.ini
@@ -2232,6 +2232,7 @@ ROUTER = console
;BLOCKED_DOMAINS =
;;
;; Allow private addresses defined by RFC 1918, RFC 1122, RFC 4632 and RFC 4291 (false by default)
+;; If a domain is allowed by ALLOWED_DOMAINS, this option will be ignored.
;ALLOW_LOCALNETWORKS = false
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;