fix(server/auth): fix wiki link to authentication section
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user