[ agent ] 优化部分内容

This commit is contained in:
zeaslity
2024-05-14 14:09:02 +08:00
parent 1b11d6b45c
commit e28c1f8212
5 changed files with 64 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="dataSourceStorageLocal" created-in="IU-241.14494.240"> <component name="dataSourceStorageLocal" created-in="IU-241.15989.150">
<data-source name="腾讯云-成都" uuid="79c9466f-d8a3-418a-b54a-f6e314306a0c"> <data-source name="腾讯云-成都" uuid="79c9466f-d8a3-418a-b54a-f6e314306a0c">
<database-info product="MySQL" version="8.0.27" jdbc-version="4.2" driver-name="MySQL Connector/J" driver-version="mysql-connector-java-8.0.25 (Revision: 08be9e9b4cba6aa115f9b27b215887af40b159e0)" dbms="MYSQL" exact-version="8.0.27" exact-driver-version="8.0"> <database-info product="MySQL" version="8.0.27" jdbc-version="4.2" driver-name="MySQL Connector/J" driver-version="mysql-connector-java-8.0.25 (Revision: 08be9e9b4cba6aa115f9b27b215887af40b159e0)" dbms="MYSQL" exact-version="8.0.27" exact-driver-version="8.0">
<extra-name-characters>#@</extra-name-characters> <extra-name-characters>#@</extra-name-characters>

View File

@@ -455,7 +455,7 @@ install_zsh() {
install_demand_softwares zsh git || return $? install_demand_softwares zsh git || return $?
# 脚本会自动更换默认的shell # 脚本会自动更换默认的shell
if [[ $deploy_in_cn -eq 1 ]]; then if [[ $deploy_in_cn -eq 1 ]]; then
echo y | REMOTE=https://gitea.107421.xyz/zeaslity/oh-my-zsh.git sh -c "$(curl -fsSL https://gitea.107421.xyz/zeaslity/ohmyzsh/raw/branch/master/tools/install.sh)" echo y | REMOTE=https://gitea.107421.xyz/zeaslity/ohmyzsh.git sh -c "$(curl -fsSL https://gitea.107421.xyz/zeaslity/ohmyzsh/raw/branch/master/tools/install.sh)"
else else
echo y | sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" echo y | sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi fi
@@ -944,7 +944,7 @@ get_octopus_agent_latest_version(){
echo "find_octopus_latest_version is => $octopus_latest_version" echo "find_octopus_latest_version is => $octopus_latest_version"
fi fi
ColorEchoGreen "Octopus Agent 最新的版本为 => $octopus_latest_version" colorEchoGreen "Octopus Agent 最新的版本为 => $octopus_latest_version"
} }
####################################### #######################################
@@ -1215,7 +1215,7 @@ build_offline_host_ip(){
colorEchoBlue "[build_offline_host_ip] - make sure agent offline package has been synchronized to => $host_ip !" colorEchoBlue "[build_offline_host_ip] - make sure agent offline package has been synchronized to => $host_ip !"
echo "" echo ""
if [[ "$host_ip" -eq "" ]]; then if [ "$host_ip" == "" ]; then
colorEchoRed "[build_offline_host_ip] - offline host ip extraction error ! break !" colorEchoRed "[build_offline_host_ip] - offline host ip extraction error ! break !"
return 233 return 233
fi fi

View File

@@ -69,8 +69,6 @@ proxy-groups:
- name: 🚀 节点选择 - name: 🚀 节点选择
type: select type: select
proxies: proxies:
- ♻️ 自动选择
- DIRECT
- LosAngels-BanH-Trojan - LosAngels-BanH-Trojan
- us-central-free - us-central-free
- Seoul-Trojan - Seoul-Trojan
@@ -83,6 +81,8 @@ proxy-groups:
- onetools-35-71 - onetools-35-71
- Seoul-F-Shanghai-TC - Seoul-F-Shanghai-TC
- LosAngels-BanH-Trojan-Back - LosAngels-BanH-Trojan-Back
- ♻️ 自动选择
- DIRECT
- name: ♻️ 自动选择 - name: ♻️ 自动选择
type: url-test type: url-test
url: http://www.gstatic.com/generate_204 url: http://www.gstatic.com/generate_204
@@ -2326,6 +2326,7 @@ rules:
- IP-CIDR6,2001:67c:4e8::/48,📲 电报信息,no-resolve - IP-CIDR6,2001:67c:4e8::/48,📲 电报信息,no-resolve
- IP-CIDR6,2001:b28:f23d::/48,📲 电报信息,no-resolve - IP-CIDR6,2001:b28:f23d::/48,📲 电报信息,no-resolve
- IP-CIDR6,2001:b28:f23f::/48,📲 电报信息,no-resolve - IP-CIDR6,2001:b28:f23f::/48,📲 电报信息,no-resolve
- DOMAIN-SUFFIX,hetushu.com,🚀 节点选择
- DOMAIN-SUFFIX,1password.com,🚀 节点选择 - DOMAIN-SUFFIX,1password.com,🚀 节点选择
- DOMAIN-SUFFIX,v2rayse.com,🚀 节点选择 - DOMAIN-SUFFIX,v2rayse.com,🚀 节点选择
- DOMAIN-SUFFIX,vpnse.org,🚀 节点选择 - DOMAIN-SUFFIX,vpnse.org,🚀 节点选择

View File

@@ -0,0 +1,41 @@
{
"inbounds": [
{
"protocol": "socks",
"listen": "0.0.0.0",
"port": 1234,
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1",
"userLevel": 0
}
}
],
"outbounds": [
{
"protocol": "socks",
"settings": {
"servers": [
{
"address": "127.0.0.1",
"ota": false,
"port": 40000,
"level": 0
}
]
},
"streamSettings": {
"network": "tcp"
},
"mux": {
"enabled": false,
"concurrency": -1
}
},
{
"protocol": "freedom"
}
]
}

View File

@@ -0,0 +1,16 @@
#!/bin/bash
#ip_list=(192.168.35.11 192.168.35.7 192.168.35.6 192.168.34.249 192.168.35.206 192.168.35.209 192.168.35.208 192.168.35.207 192.168.35.80 192.168.35.71 192.168.35.124 192.168.35.125 192.168.35.82 192.168.34.216 192.168.34.125 192.168.34.233 192.168.34.239 192.168.34.241 192.168.34.84 192.168.34.83 192.168.34.56 192.168.11.228 192.168.35.47 192.168.35.45)
ip_list=(192.168.34.250)
for ip in ${ip_list[@]};do
echo "ip is $ip"
# ssh root@${ip} "echo yes"
ssh root@${ip} "ip addr | grep ${ip} -A 3"
echo ""
ssh root@${ip} "cat /etc/os-release"
echo ""
# ssh root@${ip} "echo \"ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBO6IjOcco9eAvA/T7LDsylCgjKJlLrVXY1zxO1/mX/MTzVZGuAhbikFJT2ZN2Up8iED+pJwpcps3LlA1wOjQC3Q= root@ops-04.ecs.io\" >> /root/.ssh/authorized_keys"
done