Skip to content

Commit 98b6d76

Browse files
committed
Fixed gun registry finding peer
Signed-off-by: Robert Gogete <gogeterobert@yahoo.com>
1 parent 390b502 commit 98b6d76

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/registry/gun-registry.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,7 @@ export class GunRegistry {
193193
} : undefined,
194194
webTorrent: data.webTorrent_available ? {
195195
available: data.webTorrent_available as boolean,
196-
magnetUris: data.webTorrent_magnetUris ?
197-
JSON.parse(data.webTorrent_magnetUris as string) : []
196+
magnetUris: data.webTorrent_magnetUris as string[] || []
198197
} : undefined,
199198
// Legacy fields for backward compatibility
200199
externalIp: data.externalIp as string,

0 commit comments

Comments
 (0)