Compare commits

...

2 Commits

Author SHA1 Message Date
Derrick Hammer 8734d8180c
*Update dist 2023-02-24 23:51:59 -05:00
Derrick Hammer 9a73a2625a
*Bug fix ip version detection 2023-02-24 23:51:50 -05:00
2 changed files with 2 additions and 2 deletions

2
dist/socket.js vendored
View File

@ -21,7 +21,7 @@ class Socket extends streamx_1.Duplex {
if (!type) { if (!type) {
throw Error("invalid remoteAddress"); throw Error("invalid remoteAddress");
} }
this.remoteFamily = type === 6 ? IPV4 : IPV6; this.remoteFamily = type === 6 ? IPV6 : IPV4;
} }
} }
_connecting; _connecting;

View File

@ -48,7 +48,7 @@ export default class Socket extends Duplex {
throw Error("invalid remoteAddress"); throw Error("invalid remoteAddress");
} }
this.remoteFamily = type === 6 ? IPV4 : IPV6; this.remoteFamily = type === 6 ? IPV6 : IPV4;
} }
} }