Skip to content

Commit

Permalink
fix: logs fatal error when unsupported policy mode is found
Browse files Browse the repository at this point in the history
  • Loading branch information
pallabpain committed Jun 22, 2024
1 parent e7c0080 commit 17caa77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hscontrol/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -627,8 +627,8 @@ func (h *Headscale) Serve() error {

// Start the local gRPC server without TLS and without authentication
grpcSocket := grpc.NewServer(
// Uncomment to debug grpc communication.
// zerolog.UnaryInterceptor(),
// Uncomment to debug grpc communication.
// zerolog.UnaryInterceptor(),
)

v1.RegisterHeadscaleServiceServer(grpcSocket, newHeadscaleV1APIServer(h))
Expand Down Expand Up @@ -1045,7 +1045,7 @@ func (h *Headscale) loadACLPolicy() error {
return fmt.Errorf("failed to parse policy: %w", err)
}
default:
log.Warn().
log.Fatal().
Str("mode", string(h.cfg.Policy.Mode)).
Msg("Unknown ACL policy mode")
}
Expand Down

0 comments on commit 17caa77

Please sign in to comment.