Skip to content

Commit fe989b6

Browse files
authored
docs: changed documentation link for trusted proxies (#3575)
1 parent a889c58 commit fe989b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gin.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ func (engine *Engine) RunUnix(file string) (err error) {
515515

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

521521
listener, err := net.Listen("unix", file)
@@ -538,7 +538,7 @@ func (engine *Engine) RunFd(fd int) (err error) {
538538

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

544544
f := os.NewFile(uintptr(fd), fmt.Sprintf("fd@%d", fd))
@@ -559,7 +559,7 @@ func (engine *Engine) RunListener(listener net.Listener) (err error) {
559559

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

565565
err = http.Serve(listener, engine.Handler())

0 commit comments

Comments
 (0)