From 28d99ecb77f863355195690602d4021c9446f672 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sat, 22 Oct 2022 17:39:29 +0200 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/smartnetwork.classes.smartnetwork.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 05975bb..5d512a7 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@pushrocks/smartnetwork', - version: '3.0.1', + version: '3.0.2', description: 'network diagnostics' } diff --git a/ts/smartnetwork.classes.smartnetwork.ts b/ts/smartnetwork.classes.smartnetwork.ts index eb55b61..ec7873a 100644 --- a/ts/smartnetwork.classes.smartnetwork.ts +++ b/ts/smartnetwork.classes.smartnetwork.ts @@ -123,10 +123,14 @@ export class SmartNetwork { v4: await plugins.publicIp.publicIpv4({ timeout: 1000, onlyHttps: true, + }).catch(async (err) => { + return null }), v6: await plugins.publicIp.publicIpv6({ timeout: 1000, onlyHttps: true, + }).catch(async (err) => { + return null }) }; }