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; } }