Compare commits
2 Commits
0a35d7f062
...
8734d8180c
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | 8734d8180c | |
Derrick Hammer | 9a73a2625a |
|
@ -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;
|
||||||
|
|
|
@ -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