diff --git a/src/core/server/http/router/socket.ts b/src/core/server/http/router/socket.ts index b06edddb012b0..dcf583140e521 100644 --- a/src/core/server/http/router/socket.ts +++ b/src/core/server/http/router/socket.ts @@ -74,7 +74,7 @@ export class KibanaSocket implements IKibanaSocket { return this.socket instanceof TLSSocket ? this.socket.authorizationError : undefined; } - constructor(public readonly socket: Socket) {} + constructor(private readonly socket: Socket) {} getPeerCertificate(detailed: true): DetailedPeerCertificate | null; getPeerCertificate(detailed: false): PeerCertificate | null;