fix(core): update

This commit is contained in:
2019-11-23 16:07:04 +00:00
parent 12b8793c19
commit 654a4c6b54
5 changed files with 213 additions and 1 deletions

View File

@ -150,4 +150,13 @@ export class SmartNetwork {
ipv6: defaultGateway[1]
};
}
public async getPublicIps () {
return {
v4: await plugins.publicIp.v4({
timeout: 1000,
onlyHttps: true
})
};
}
}

View File

@ -11,7 +11,8 @@ export { smartpromise, smartstring };
// @third party scope
import * as portscanner from 'portscanner';
import publicIp from 'public-ip';
import speedtestNet from 'speedtest-net';
import * as systeminformation from 'systeminformation';
export { speedtestNet, portscanner, systeminformation };
export { portscanner, publicIp, speedtestNet, systeminformation };