v2xray/.bashrc
2022-03-09 12:24:44 +08:00

31 lines
712 B
Bash

# proxy
httpproxy-server () {
eval $(ps -ef | grep -m 1 "python .*xray_run\.py a" | awk '{print "sudo kill -9 "$2}')
nohup sudo python $HOME/scripts/v2xray/xray_run.py a >> /dev/null 2>&1 &
}
httpproxy () {
export HTTP_PROXY="http://127.0.0.1:2802"
export http_proxy="http://127.0.0.1:2802"
export HTTPS_PROXY="http://127.0.0.1:2802"
export https_proxy="http://127.0.0.1:2802"
export FTP_PROXY="http://127.0.0.1:2802"
export ftp_proxy="http://127.0.0.1:2802"
}
nohttpproxy () {
unset HTTP_PROXY
unset http_proxy
unset HTTPS_PROXY
unset https_proxy
unset FTP_PROXY
unset ftp_proxy
}
getip () {
curl https://ip.gs
}
# sudo groupadd -g 10333 tproxy
# sudo usermod -aG tproxy $USER