fix(server/auth): fix wiki link to authentication section

This commit is contained in:
Quentin McGaw
2024-11-05 10:33:28 +00:00
parent 3473fe9c15
commit 69aafa53c9
2 changed files with 2 additions and 2 deletions

View File

@@ -105,7 +105,7 @@ func (h *authHandler) warnIfUnprotectedByDefault(role internalRole, route string
} }
h.logger.Warnf("route %s is unprotected by default, "+ h.logger.Warnf("route %s is unprotected by default, "+
"please set up authentication following the documentation at "+ "please set up authentication following the documentation at "+
"https://github.com/qdm12/gluetun-wiki/setup/advanced/control-server.md#authentication "+ "https://github.com/qdm12/gluetun-wiki/blob/main/setup/advanced/control-server.md#authentication "+
"since this will become no longer publicly accessible after release v3.40.", "since this will become no longer publicly accessible after release v3.40.",
route) route)
} }

View File

@@ -50,7 +50,7 @@ func Test_authHandler_ServeHTTP(t *testing.T) {
logger := NewMockDebugLogger(ctrl) logger := NewMockDebugLogger(ctrl)
logger.EXPECT().Warnf("route %s is unprotected by default, "+ logger.EXPECT().Warnf("route %s is unprotected by default, "+
"please set up authentication following the documentation at "+ "please set up authentication following the documentation at "+
"https://github.com/qdm12/gluetun-wiki/setup/advanced/control-server.md#authentication "+ "https://github.com/qdm12/gluetun-wiki/blob/main/setup/advanced/control-server.md#authentication "+
"since this will become no longer publicly accessible after release v3.40.", "since this will become no longer publicly accessible after release v3.40.",
"GET /v1/vpn/status") "GET /v1/vpn/status")
logger.EXPECT().Debugf("access to route %s authorized for role %s", logger.EXPECT().Debugf("access to route %s authorized for role %s",