1
0
mirror of https://github.com/juanfont/headscale.git synced 2024-12-20 19:09:07 +01:00

Remove "auth skip" for socket traffic

This commit is contained in:
Kristoffer Dalby 2021-10-31 19:57:42 +00:00
parent 53df9afc2a
commit b91c115ade
No known key found for this signature in database
GPG Key ID: 09F62DC067465735

7
app.go
View File

@ -260,13 +260,6 @@ func (h *Headscale) grpcAuthenticationInterceptor(ctx context.Context,
// the server
p, _ := peer.FromContext(ctx)
// TODO(kradalby): Figure out what @ means (socket wise) and if it can be exploited
// if p.Addr.String() == "@" {
// log.Trace().Caller().Str("client_address", p.Addr.String()).Msg("Client connecting over socket")
// return handler(ctx, req)
// }
log.Trace().Caller().Str("client_address", p.Addr.String()).Msg("Client is trying to authenticate")
md, ok := metadata.FromIncomingContext(ctx)