From 7834ed5e6da1c93950f4de903dd0a03e35f3986d Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 31 Aug 2022 18:25:39 -0400 Subject: [PATCH] *Need to pass methods to check in module.method format --- src/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 1602179..c01f2f1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -234,7 +234,12 @@ function checkRelayLatency(relay: string, list: any[]) { if ( !(await relayHasMethods( - ["stat_ipfs", "stat_ipns", "fetch_ipfs", "fetch_ipns"], + [ + "ipfs.stat_ipfs", + "ipfs.stat_ipns", + "ipfs.fetch_ipfs", + "ipfs.fetch_ipns", + ], relay )) ) {