Skip to content

Commit

Permalink
force ipv4 connection
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Jan 7, 2025
1 parent b1b1083 commit 85a9940
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/network/kmip/transport/TransportTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,14 @@ export default class TransportTemplate {
readyCallback: (error: Error | null) => void,
) {
try {
const options = {
...this.options.tls,
host: '127.0.0.1',
family: 4,
}

Check failure on line 97 in lib/network/kmip/transport/TransportTemplate.ts

View workflow job for this annotation

GitHub Actions / test

Missing semicolon
const socket = this.channel.connect(
this.options.tls.port || DEFAULT_KMIP_PORT,
this.options.tls,
options,
() => {
if (this.handshakeFunction) {
this.handshakeFunction(logger, readyCallback);
Expand Down

0 comments on commit 85a9940

Please sign in to comment.