Files
ShellCrash/scripts/libs/set_proxy.sh
2025-12-20 20:31:06 +08:00

8 lines
200 B
Bash

setproxy(){
[ -n "$(pidof CrashCore)" ] && {
[ -n "$authentication" ] && auth="$authentication@"
[ -z "$mix_port" ] && mix_port=7890
export https_proxy="http://${auth}127.0.0.1:$mix_port"
}
}