Skip to content

Commit 3727ff4

Browse files
committed
fix lookup callback for node 22
1 parent 66cc032 commit 3727ff4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ca.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ nodeOnly(() => {
5858
port: 4430,
5959
ca: [constrainedCaCert],
6060
lookup: (hostname, options, callback) => {
61-
callback(null, "127.0.0.1", 4);
61+
callback(null, [{ address: "127.0.0.1", family: 4 }]);
6262
},
6363
},
6464
(res) => {
@@ -90,7 +90,7 @@ nodeOnly(() => {
9090
port: 4430,
9191
ca: [constrainedCaCert],
9292
lookup: (hostname, options, callback) => {
93-
callback(null, "127.0.0.1", 4);
93+
callback(null, [{ address: "127.0.0.1", family: 4 }]);
9494
},
9595
},
9696
);

0 commit comments

Comments
 (0)