feat(脚本): 删除无用代码

master
mack-a 2023-05-24 13:37:15 +08:00
parent 6f8434aec8
commit 5b6596492f
1 changed files with 0 additions and 2 deletions

View File

@ -5295,8 +5295,6 @@ unInstallSniffing() {
# 安装嗅探 # 安装嗅探
installSniffing() { installSniffing() {
readInstallType readInstallType
find ${configPath} -name "*inbounds.json*"
find ${configPath} -name "*inbounds.json*" | awk -F "[c][o][n][f][/]" '{print $2}'
find ${configPath} -name "*inbounds.json*" | awk -F "[c][o][n][f][/]" '{print $2}' | while read -r inbound; do find ${configPath} -name "*inbounds.json*" | awk -F "[c][o][n][f][/]" '{print $2}' | while read -r inbound; do
if ! grep -q "destOverride" <"${configPath}${inbound}"; then if ! grep -q "destOverride" <"${configPath}${inbound}"; then
sniffing=$(jq -r '.inbounds[0].sniffing = {"enabled":true,"destOverride":["http","tls"]}' "${configPath}${inbound}") sniffing=$(jq -r '.inbounds[0].sniffing = {"enabled":true,"destOverride":["http","tls"]}' "${configPath}${inbound}")