Skip to content
Myr

docs(gin): update link to dont-trust-all-proxies section (#3938) (#3945)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Update link [1] to [2] after PR #3449 was merged. [1] https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies [2] https://github.com/gin-gonic/gin/blob/master/docs/doc.md#dont-trust-all-proxies Closes

authored by Pedro Aguiar · committed by GitHub · parent 8dd0889 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:gin.go+2 added-2 removed
389 unmodified lines
390 defer func() { debugPrintError(err) }()391392 if engine.isUnsafeTrustedProxies() {393 debugPrint("[WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.\n" +394 "Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.")394 "Please check https://github.com/gin-gonic/gin/blob/master/docs/doc.md#dont-trust-all-proxies for details.")395 }396397 address := resolveAddress(addr)398 debugPrint("Listening and serving HTTP on %s\n", address)
112 unmodified lines
511 defer func() { debugPrintError(err) }()512513 if engine.isUnsafeTrustedProxies() {514 debugPrint("[WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.\n" +515 "Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.")515 "Please check https://github.com/gin-gonic/gin/blob/master/docs/doc.md#dont-trust-all-proxies for details.")516 }517518 err = http.ListenAndServeTLS(addr, certFile, keyFile, engine.Handler())519 return
213 unmodified lines