[+] Create setproxy()

This commit is contained in:
Hykilpikonna
2021-09-16 20:48:49 -04:00
committed by GitHub
parent f7e8ba8e77
commit efcfdad1da
+11
View File
@@ -75,6 +75,17 @@ color() {
echo $tmp
}
# Set proxy
setproxy() {
addr=${1:-127.0.0.1}
port=${2:-7890}
full="$addr:$port"
export https_proxy="http://$full"
export http_proxy="http://$full"
export all_proxy="socks5://$full"
color "&aUsing proxy! $full&r"
}
# Cut videos - cut <file name> <end time> [start time (default 00:00:00)]
cut() {
if [ "$#" -lt 2 ]; then