Skip to content

Commit e6919e1

Browse files
committed
fix: remove zone id from ipv6 addresses
Workaround for ChainSafe/is-ip#9
1 parent 20067f7 commit e6919e1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/index.spec.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,17 @@ describe('multiaddr matcher', () => {
2727
const exactIP = [
2828
'/ip4/0.0.0.0',
2929
'/ip6/fc00::',
30-
'/ip6/fe80::8cb1:25ff:fec5:28e3%llw0'
30+
'/ip6/fe80::8cb1:25ff:fec5:28e3'
31+
// https://github.com/ChainSafe/is-ip/issues/9
32+
// '/ip6/fe80::8cb1:25ff:fec5:28e3%llw0'
3133
]
3234

3335
const goodIP = [
3436
...exactIP,
3537
'/ip4/123.123.123.123/tcp/80',
36-
'/ip6/fe80::1cc1:a3b8:322f:cf22%utun0/udp/4921/wss'
38+
'/ip6/fe80::1cc1:a3b8:322f:cf22/udp/4921/wss'
39+
// https://github.com/ChainSafe/is-ip/issues/9
40+
// '/ip6/fe80::1cc1:a3b8:322f:cf22%utun0/udp/4921/wss'
3741
]
3842

3943
const badIP = [

0 commit comments

Comments
 (0)