website icon indicating copy to clipboard operation
website copied to clipboard

Documentation not found #readme-don-t-trust-all-proxies

Open azmmmm opened this issue 2 years ago • 1 comments

hi, i'm new to golang and this framework.

I'm trying to run a starting template following document. However, I encounter some warning :

[GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value. Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.

I want to know more detail. So I follow into the document, but #readme-don-t-trust-all-proxies is nowhere to be found. I know func (*Engine) SetTrustedProxies could possibly solve the warning. But I still wanna know why I should do it as "don-t-trust-all-proxies"?

ps: I tried google "don't trust all proxies" but nothing specific. And I'm a newbee and this is my first time making issue. Please feel free to correct me about anything.

azmmmm avatar Mar 10 '23 11:03 azmmmm

Hello for anyone still wondering. It's here.

Found it by ripgrepping the github repo.

dowdt avatar Jul 06 '24 05:07 dowdt

See 70aad7e6ad81df12ed47250f4d28adb3ae86c2af

appleboy avatar Mar 16 '25 01:03 appleboy