| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a00464e commit c728b8a
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -280,6 +280,8 @@ if (common.hasIPv6) { | |||
| 280 | 280 | if (common.hasIPv6) { | |
| 281 | 281 | assert.strictEqual(error.code, 'ECONNREFUSED'); | |
| 282 | 282 | assert.strictEqual(error.message, `connect ECONNREFUSED ::1:${port}`); | |
| 283 | + } else if (error.code === 'EAFNOSUPPORT') { | ||
| 284 | + assert.strictEqual(error.message, `connect EAFNOSUPPORT ::1:${port} - Local (undefined:undefined)`); | ||
| 283 | 285 | } else { | |
| 284 | 286 | assert.strictEqual(error.code, 'EADDRNOTAVAIL'); | |
| 285 | 287 | assert.strictEqual(error.message, `connect EADDRNOTAVAIL ::1:${port} - Local (:::0)`); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -127,6 +127,8 @@ function createDnsServer(ipv6Addr, ipv4Addr, cb) { | |||
| 127 | 127 | if (common.hasIPv6) { | |
| 128 | 128 | assert.strictEqual(error.code, 'ECONNREFUSED'); | |
| 129 | 129 | assert.strictEqual(error.message, `connect ECONNREFUSED ::1:${port}`); | |
| 130 | + } else if (error.code === 'EAFNOSUPPORT') { | ||
| 131 | + assert.strictEqual(error.message, `connect EAFNOSUPPORT ::1:${port} - Local (undefined:undefined)`); | ||
| 130 | 132 | } else { | |
| 131 | 133 | assert.strictEqual(error.code, 'EADDRNOTAVAIL'); | |
| 132 | 134 | assert.strictEqual(error.message, `connect EADDRNOTAVAIL ::1:${port} - Local (:::0)`); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments