From e89c742f3ffe4fd125c10e85fb6b6008d044625f Mon Sep 17 00:00:00 2001 From: Connection Refused Date: Fri, 28 May 2021 23:31:54 +0800 Subject: [PATCH] Add aiodns --- scripts/download.ps1 | 1 + scripts/download/aiodns.ps1 | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 scripts/download/aiodns.ps1 diff --git a/scripts/download.ps1 b/scripts/download.ps1 index 17f108ce..20464125 100644 --- a/scripts/download.ps1 +++ b/scripts/download.ps1 @@ -31,6 +31,7 @@ Remove-Item -Force data.zip Remove-Item -Force mode.zip Remove-Item -Force i18n.zip +..\scripts\download\aiodns.ps1 -OutputPath bin ..\scripts\download\cloak.ps1 -OutputPath bin ..\scripts\download\xray-core.ps1 -OutputPath bin diff --git a/scripts/download/aiodns.ps1 b/scripts/download/aiodns.ps1 new file mode 100644 index 00000000..74b70d56 --- /dev/null +++ b/scripts/download/aiodns.ps1 @@ -0,0 +1,10 @@ +param([string]$OutputPath) +$address="https://github.com/aiocloud/aiodns/releases/download/1.0.4/aiodns.bin" +$domains="https://raw.githubusercontent.com/aiocloud/aiodns/master/aiodns.conf" + +Invoke-WebRequest -Uri $address -OutFile aiodns.bin +Invoke-WebRequest -Uri $domains -OutFile aiodns.conf + +Move-Item -Force aiodns.bin $OutputPath +Move-Item -Force aiodns.conf $OutputPath +exit 0