(addresses)
| 2419 | } |
| 2420 | |
| 2421 | function filterOnlyValidAddress(addresses) { |
| 2422 | // Return the first non IPV6 link-local address if present |
| 2423 | for (const address of addresses) { |
| 2424 | if (!isIpv6LinkLocal(address.address)) { |
| 2425 | return address; |
| 2426 | } |
| 2427 | } |
| 2428 | |
| 2429 | // Otherwise return the first address |
| 2430 | return addresses[0]; |
| 2431 | } |
| 2432 | |
| 2433 | function lookupAndListen(self, port, address, backlog, |
| 2434 | exclusive, flags) { |
no test coverage detected
searching dependent graphs…