Compare commits

...

2 Commits

Author SHA1 Message Date
a1203366d7 4.0.6 2021-01-22 22:20:40 +00:00
0deb77cda8 fix(core): update 2021-01-22 22:20:39 +00:00
4 changed files with 1618 additions and 1466 deletions

3069
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartdns",
"version": "4.0.5",
"version": "4.0.6",
"private": false,
"description": "smart dns methods written in TypeScript",
"main": "dist_ts/index.js",
@ -28,8 +28,7 @@
"@pushrocks/smartdelay": "^2.0.10",
"@pushrocks/smartpromise": "^3.0.6",
"@pushrocks/smartrequest": "^1.1.47",
"@tsclass/tsclass": "^3.0.21",
"dns2": "^1.4.2"
"@tsclass/tsclass": "^3.0.21"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.24",

View File

@ -14,9 +14,3 @@ import * as tsclass from '@tsclass/tsclass';
export { tsclass };
// third party scope
import dns2 from 'dns2';
export {
dns2
}

View File

@ -24,8 +24,6 @@ export class Smartdns {
public dnsServerIp: string;
public dnsServerPort: number;
public dns2 = new plugins.dns2();
public dnsTypeMap: { [key: string]: number } = {
A: 1,
AAAA: 28,
@ -67,8 +65,6 @@ export class Smartdns {
return true;
} else {
await plugins.smartdelay.delayFor(intervalArg);
// lets try backup strategy
const backupResult = this.dns2[`resolve${recordTypeArg}`]('google.com')
return await doCheck();
}
} catch (err) {