Skip to content

Commit

Permalink
docs: changed documentation link for trusted proxies
Browse files Browse the repository at this point in the history
gin-gonic#3575

Fixes more incorrect links from the linked PR.
  • Loading branch information
caleflat authored Jul 18, 2023
1 parent d4a6426 commit 7984624
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gin.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ func (engine *Engine) Run(addr ...string) (err error) {

if engine.isUnsafeTrustedProxies() {
debugPrint("[WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.\n" +
"Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.")
"Please check https://github.com/gin-gonic/gin/blob/master/docs/doc.md#dont-trust-all-proxies.")
}

address := resolveAddress(addr)
Expand Down Expand Up @@ -499,7 +499,7 @@ func (engine *Engine) RunTLS(addr, certFile, keyFile string) (err error) {

if engine.isUnsafeTrustedProxies() {
debugPrint("[WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.\n" +
"Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.")
"Please check https://github.com/gin-gonic/gin/blob/master/docs/doc.md#dont-trust-all-proxies.")
}

err = http.ListenAndServeTLS(addr, certFile, keyFile, engine.Handler())
Expand Down

0 comments on commit 7984624

Please sign in to comment.