mirror of
https://github.com/teddysun/across.git
synced 2025-01-31 12:19:35 +08:00
Change download URL to https mode
This commit is contained in:
parent
c22b304a65
commit
fd3c12a61b
4
l2tp.sh
4
l2tp.sh
@ -137,13 +137,13 @@ is_64bit(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
download_file(){
|
download_file(){
|
||||||
local download_root_url="http://lamp.teddysun.com/files"
|
local download_root_url="https://lamp.teddysun.com/files"
|
||||||
|
|
||||||
if [ -s ${1} ]; then
|
if [ -s ${1} ]; then
|
||||||
echo "$1 [found]"
|
echo "$1 [found]"
|
||||||
else
|
else
|
||||||
echo "$1 not found!!!download now..."
|
echo "$1 not found!!!download now..."
|
||||||
if ! wget -c -t3 -T60 ${download_root_url}/${1};then
|
if ! wget --no-check-certificate -c -t3 -T60 ${download_root_url}/${1};then
|
||||||
echo "Failed to download $1, please download it to ${cur_dir} directory manually and try again."
|
echo "Failed to download $1, please download it to ${cur_dir} directory manually and try again."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user