[ clash ] 新增clash-sub

This commit is contained in:
zeaslity
2024-03-21 11:39:46 +08:00
parent 02022603ed
commit 7883ddeba5
11 changed files with 395 additions and 739 deletions

View File

@@ -323,12 +323,12 @@ get_ipv4_info() {
FunctionStart "开始收集服务器IP信息"
# public ip info
net_provider="$(wget -q -T10 -O- ipinfo.io/org)"
city="$(wget -q -T10 -O- ipinfo.io/city)"
country="$(wget -q -T10 -O- ipinfo.io/country)"
region="$(wget -q -T10 -O- ipinfo.io/region)"
public_ipv4="$(wget -q -T10 -O- ipinfo.io/ip)"
public_ipv6="$(curl -q --max-time 5 -6 https://ifconfig.co/ip)"
net_provider="$(wget -q --timeout=2 -O- ipinfo.io/org)"
city="$(wget -q --timeout=2 -O- ipinfo.io/city)"
country="$(wget -q --timeout=2 -O- ipinfo.io/country)"
region="$(wget -q --timeout=2 -O- ipinfo.io/region)"
public_ipv4="$(wget -q --timeout=2 -O- ipinfo.io/ip)"
public_ipv6="$(curl -q --max-time 2 -6 https://ifconfig.co/ip)"
if [[ $city -eq "" ]]; then
city="Chengdu"

View File

@@ -0,0 +1,28 @@
#!/bin/bash
target_minio="http://42.192.52.227:9000"
local_minio="http://localhost:9000"
minio_user_name="cmii"
minio_user_pass="B#923fC7mk"
bucket_name="octopus"
main() {
# alies
# mc alias set local ${local_minio} ${minio_user_name} ${minio_user_pass}
# mc alias set public ${target_minio} ${minio_user_name} ${minio_user_pass}
mc mb public/${bucket_name}
echo ""
# ls
local file
for file in $(mc ls local/${bucket_name}/ | awk '{print$6}')
do
echo "the current file is ${file}"
mc cp local/$bucket_name/"$file" public/$bucket_name/"$file"
done
}
main