updated comment by removing mention of windows
any syetem that has it first network interface on ipv6 will also fail if udp4 was bound on it, not just windows
This commit is contained in:
parent
36457fa5bd
commit
ec45f36ae0
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ function serveNet(host,port,UDPType,callback){
|
||||||
if(UDPType){
|
if(UDPType){
|
||||||
this.server[UDPType]=true;
|
this.server[UDPType]=true;
|
||||||
if(UDPType === "udp4" && host === "::1") {
|
if(UDPType === "udp4" && host === "::1") {
|
||||||
// bind udp4 socket to an ipv4 address to avoid failing on windows
|
// bind udp4 socket to an ipv4 address
|
||||||
this.server.path = "127.0.0.1";
|
this.server.path = "127.0.0.1";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue