This commit is contained in:
Lunny Xiao 2024-09-27 12:51:27 -07:00
parent f173431b8e
commit 1a8acdefbc
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 1 additions and 3 deletions

View File

@ -16,7 +16,7 @@ var ReverseProxyAuth = struct {
ReverseProxyTrustedProxies []string
}{}
func loadReverseProxyAuthFrom(rootCfg ConfigProvider) error {
func loadReverseProxyAuthFrom(rootCfg ConfigProvider) {
serviceSec := rootCfg.Section("service")
ReverseProxyAuth.Enabled = serviceSec.Key("ENABLE_REVERSE_PROXY_AUTHENTICATION").MustBool()
@ -35,6 +35,4 @@ func loadReverseProxyAuthFrom(rootCfg ConfigProvider) error {
if len(ReverseProxyAuth.ReverseProxyTrustedProxies) == 0 {
ReverseProxyAuth.ReverseProxyTrustedProxies = []string{"127.0.0.0/8", "::1/128"}
}
return nil
}