diff --git a/scripts/init.sh b/scripts/init.sh index 95b8c56f..b3f74147 100644 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -108,7 +108,7 @@ grep -q 'firewall_mod' "$CRASHDIR/configs/ShellClash.cfg" 2>/dev/null || { if [ -n "$profile" ]; then set_profile "$profile" #适配zsh环境变量 - zsh --version >/dev/null 2>&1 && [ -z "$(cat $HOME/.zshrc 2>/dev/null | grep CRASHDIR)" ] && set_profile '$HOME/.zshrc' + zsh --version >/dev/null 2>&1 && [ -z "$(cat $HOME/.zshrc 2>/dev/null | grep CRASHDIR)" ] && set_profile "$HOME/.zshrc" setconfig my_alias "$my_alias" else echo -e "\033[33m无法写入环境变量!请检查安装权限!\033[0m" diff --git a/scripts/libs/sb_inbounds.sh b/scripts/libs/sb_inbounds.sh index c45c258e..20e69f49 100644 --- a/scripts/libs/sb_inbounds.sh +++ b/scripts/libs/sb_inbounds.sh @@ -29,6 +29,8 @@ EOF { "type": "shadowsocks", "tag": "ss-in", + "listen": "::", + "listen_port": $sss_port, "method": "$sss_cipher", "password": "$sss_pwd", } diff --git a/scripts/menus/7_gateway.sh b/scripts/menus/7_gateway.sh index 861d5d0c..9313484e 100644 --- a/scripts/menus/7_gateway.sh +++ b/scripts/menus/7_gateway.sh @@ -226,6 +226,7 @@ set_bot_tg(){ set_vmess(){ echo "-----------------------------------------------" echo -e "\033[31m注意:\033[0m设置的端口会添加到公网访问防火墙并自动放行!\n 脚本只提供基础功能,更多需求请用自定义配置文件功能!" + echo -e " \033[31m切勿用于搭建违法翻墙节点,违者后果自负!\033[0m" echo "-----------------------------------------------" echo -e " 1 \033[32m启用/关闭\033[0mVmess入站 \033[32m$vms_service\033[0m" echo "-----------------------------------------------" @@ -348,6 +349,7 @@ EOF set_shadowsocks(){ echo "-----------------------------------------------" echo -e "\033[31m注意:\033[0m设置的端口会添加到公网访问防火墙并自动放行!\n 脚本只提供基础功能,更多需求请用自定义配置文件功能!" + echo -e " \033[31m切勿用于搭建违法翻墙节点,违者后果自负!\033[0m" echo "-----------------------------------------------" echo -e " 1 \033[32m启用/关闭\033[0mShadowSocks入站 \033[32m$sss_service\033[0m" echo "-----------------------------------------------"