From 79846244ca873b9ef721fc790e12e6c38f25bee0 Mon Sep 17 00:00:00 2001 From: Cale Flatley <44243598+caleflat@users.noreply.github.com> Date: Mon, 17 Jul 2023 22:27:05 -0400 Subject: [PATCH] docs: changed documentation link for trusted proxies https://github.com/gin-gonic/gin/pull/3575 Fixes more incorrect links from the linked PR. --- gin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gin.go b/gin.go index ed8b6dad..aee98217 100644 --- a/gin.go +++ b/gin.go @@ -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) @@ -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())