diff --git a/scripts/deps/chnip.ps1 b/scripts/deps/chnip.ps1 new file mode 100644 index 00000000..8245c488 --- /dev/null +++ b/scripts/deps/chnip.ps1 @@ -0,0 +1,16 @@ +param ( + [string] + $OutputPath +) + +try { + Invoke-WebRequest ` + -Uri 'https://raw.githubusercontent.com/17mon/china_ip_list/master/china_ip_list.txt' ` + -OutFile 'chnip.txt' +} +catch { + exit 1 +} + +mv -Force 'chnip.txt' $OutputPath +exit 0 \ No newline at end of file