*Bug fix ip version detection
This commit is contained in:
parent
0a35d7f062
commit
9a73a2625a
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue