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:
Mostafa Samir 2016-04-01 22:03:52 +02:00
parent 36457fa5bd
commit ec45f36ae0
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ function serveNet(host,port,UDPType,callback){
if(UDPType){
this.server[UDPType]=true;
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";
}
}