From 9a73a2625ad9d065c8678cfbe137a969e3243698 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 24 Feb 2023 23:51:50 -0500 Subject: [PATCH] *Bug fix ip version detection --- src/socket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket.ts b/src/socket.ts index d1c8c83..1ed90f8 100644 --- a/src/socket.ts +++ b/src/socket.ts @@ -48,7 +48,7 @@ export default class Socket extends Duplex { throw Error("invalid remoteAddress"); } - this.remoteFamily = type === 6 ? IPV4 : IPV6; + this.remoteFamily = type === 6 ? IPV6 : IPV4; } }