*Bug fix ip version detection

This commit is contained in:
Derrick Hammer 2023-02-24 23:51:50 -05:00
parent 0a35d7f062
commit 9a73a2625a
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

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