mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-11 07:51:45 +00:00
~优化本地ipv4路由网段获取,修复Tailscale通告相关问题 ~修复由于公网防火墙导致的本机及容器代理查询dns失败的相关bug ~修复entware环境兼容问题 ~修复部分版本wget命令兼容问题 ~修复保存面板节点功能相关bug ~修复singbox内核禁用配置覆写后启动失败的bug
9 lines
267 B
Bash
9 lines
267 B
Bash
|
|
setproxy(){
|
|
[ -n "$(pidof CrashCore)" ] && {
|
|
[ -n "$authentication" ] && auth="$authentication@" || auth=""
|
|
[ -z "$mix_port" ] && mix_port=7890
|
|
export https_proxy="http://${auth}127.0.0.1:$mix_port"
|
|
export http_proxy="http://${auth}127.0.0.1:$mix_port"
|
|
}
|
|
} |