File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,12 +19,12 @@ func (c *Config) DetachServer() bool {
1919 return c .options .DetachServer
2020}
2121
22- // TrustedProxy returns the list of trusted proxy servers as comma-separated list.
22+ // TrustedProxy returns the ranges from which reverse proxy headers can be trusted as comma-separated list.
2323func (c * Config ) TrustedProxy () string {
2424 return strings .Join (c .options .TrustedProxies , ", " )
2525}
2626
27- // TrustedProxies returns proxy server ranges from which client and protocol headers can be trusted.
27+ // TrustedProxies returns proxy server ranges from which reverse proxy headers can be trusted.
2828func (c * Config ) TrustedProxies () []string {
2929 return c .options .TrustedProxies
3030}
Original file line number Diff line number Diff line change @@ -409,7 +409,7 @@ var Flags = CliFlags{
409409 }, Tags : []string {EnvSponsor }}, {
410410 Flag : cli.StringSliceFlag {
411411 Name : "trusted-proxy" ,
412- Usage : "`CIDR` range from which IP and HTTPS proxy headers can be trusted" ,
412+ Usage : "`CIDR` range from which reverse proxy headers can be trusted" ,
413413 Value : & cli.StringSlice {header .CidrDockerInternal },
414414 EnvVar : "PHOTOPRISM_TRUSTED_PROXY" ,
415415 }}, {
You can’t perform that action at this time.
0 commit comments