mirror of
https://github.com/KANIKIG/Multi-EasyGost.git
synced 2025-08-10 00:52:32 +00:00
增加HTTP代理
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
- 新支持传输类型
|
- 新支持传输类型
|
||||||
- relay+ws
|
- relay+ws
|
||||||
- relay+wss
|
- relay+wss
|
||||||
- 落地机一键创建ss或socks5代理 (gost内置)
|
- 落地机一键创建ss/socks5/http代理 (gost内置)
|
||||||
- 支持多传输类型的多落地简单型均衡负载
|
- 支持多传输类型的多落地简单型均衡负载
|
||||||
- 增加gost国内加速下载镜像
|
- 增加gost国内加速下载镜像
|
||||||
- 简单创建或删除gost定时重启任务
|
- 简单创建或删除gost定时重启任务
|
||||||
|
|||||||
21
gost.sh
21
gost.sh
@@ -167,7 +167,7 @@ function read_protocol() {
|
|||||||
echo -e "说明: 对于经由gost加密中转的流量, 通过此选项进行解密并转发给本机的代理服务端口或转发给其他远程机器"
|
echo -e "说明: 对于经由gost加密中转的流量, 通过此选项进行解密并转发给本机的代理服务端口或转发给其他远程机器"
|
||||||
echo -e " 一般设置在用于接收中转流量的国外机器上"
|
echo -e " 一般设置在用于接收中转流量的国外机器上"
|
||||||
echo -e "-----------------------------------"
|
echo -e "-----------------------------------"
|
||||||
echo -e "[4] 一键安装ss/socks5代理"
|
echo -e "[4] 一键安装ss/socks5/http代理"
|
||||||
echo -e "说明: 使用gost内置的代理协议,轻量且易于管理"
|
echo -e "说明: 使用gost内置的代理协议,轻量且易于管理"
|
||||||
echo -e "-----------------------------------"
|
echo -e "-----------------------------------"
|
||||||
echo -e "[5] 进阶:多落地均衡负载"
|
echo -e "[5] 进阶:多落地均衡负载"
|
||||||
@@ -202,6 +202,9 @@ function read_s_port() {
|
|||||||
elif [ "$flag_a" == "socks" ]; then
|
elif [ "$flag_a" == "socks" ]; then
|
||||||
echo -e "-----------------------------------"
|
echo -e "-----------------------------------"
|
||||||
read -p "请输入socks密码: " flag_b
|
read -p "请输入socks密码: " flag_b
|
||||||
|
elif [ "$flag_a" == "http" ]; then
|
||||||
|
echo -e "-----------------------------------"
|
||||||
|
read -p "请输入http密码: " flag_b
|
||||||
else
|
else
|
||||||
echo -e "------------------------------------------------------------------"
|
echo -e "------------------------------------------------------------------"
|
||||||
echo -e "请问你要将本机哪个端口接收到的流量进行转发?"
|
echo -e "请问你要将本机哪个端口接收到的流量进行转发?"
|
||||||
@@ -241,6 +244,9 @@ function read_d_ip() {
|
|||||||
elif [ "$flag_a" == "socks" ]; then
|
elif [ "$flag_a" == "socks" ]; then
|
||||||
echo -e "-----------------------------------"
|
echo -e "-----------------------------------"
|
||||||
read -p "请输入socks用户名: " flag_c
|
read -p "请输入socks用户名: " flag_c
|
||||||
|
elif [ "$flag_a" == "http" ]; then
|
||||||
|
echo -e "-----------------------------------"
|
||||||
|
read -p "请输入http用户名: " flag_c
|
||||||
elif [[ "$flag_a" == "peer"* ]]; then
|
elif [[ "$flag_a" == "peer"* ]]; then
|
||||||
echo -e "------------------------------------------------------------------"
|
echo -e "------------------------------------------------------------------"
|
||||||
echo -e "请输入落地列表文件名"
|
echo -e "请输入落地列表文件名"
|
||||||
@@ -306,6 +312,10 @@ function read_d_port() {
|
|||||||
echo -e "------------------------------------------------------------------"
|
echo -e "------------------------------------------------------------------"
|
||||||
echo -e "请问你要设置socks代理服务的端口?"
|
echo -e "请问你要设置socks代理服务的端口?"
|
||||||
read -p "请输入: " flag_d
|
read -p "请输入: " flag_d
|
||||||
|
elif [ "$flag_a" == "http" ]; then
|
||||||
|
echo -e "------------------------------------------------------------------"
|
||||||
|
echo -e "请问你要设置http代理服务的端口?"
|
||||||
|
read -p "请输入: " flag_d
|
||||||
elif [[ "$flag_a" == "peer"* ]]; then
|
elif [[ "$flag_a" == "peer"* ]]; then
|
||||||
echo -e "------------------------------------------------------------------"
|
echo -e "------------------------------------------------------------------"
|
||||||
echo -e "您要设置的均衡负载策略: "
|
echo -e "您要设置的均衡负载策略: "
|
||||||
@@ -559,12 +569,15 @@ function proxy() {
|
|||||||
echo -e "-----------------------------------"
|
echo -e "-----------------------------------"
|
||||||
echo -e "[1] shadowsocks"
|
echo -e "[1] shadowsocks"
|
||||||
echo -e "[2] socks5(强烈建议加隧道用于Telegram代理)"
|
echo -e "[2] socks5(强烈建议加隧道用于Telegram代理)"
|
||||||
|
echo -e "[3] http"
|
||||||
echo -e "-----------------------------------"
|
echo -e "-----------------------------------"
|
||||||
read -p "请选择代理类型: " numproxy
|
read -p "请选择代理类型: " numproxy
|
||||||
if [ "$numproxy" == "1" ]; then
|
if [ "$numproxy" == "1" ]; then
|
||||||
flag_a="ss"
|
flag_a="ss"
|
||||||
elif [ "$numproxy" == "2" ]; then
|
elif [ "$numproxy" == "2" ]; then
|
||||||
flag_a="socks"
|
flag_a="socks"
|
||||||
|
elif [ "$numproxy" == "3" ]; then
|
||||||
|
flag_a="http"
|
||||||
else
|
else
|
||||||
echo "type error, please try again"
|
echo "type error, please try again"
|
||||||
exit
|
exit
|
||||||
@@ -647,6 +660,8 @@ function method() {
|
|||||||
echo " \"ss://$d_ip:$s_port@:$d_port\"" >>$gost_conf_path
|
echo " \"ss://$d_ip:$s_port@:$d_port\"" >>$gost_conf_path
|
||||||
elif [ "$is_encrypt" == "socks" ]; then
|
elif [ "$is_encrypt" == "socks" ]; then
|
||||||
echo " \"socks5://$d_ip:$s_port@:$d_port\"" >>$gost_conf_path
|
echo " \"socks5://$d_ip:$s_port@:$d_port\"" >>$gost_conf_path
|
||||||
|
elif [ "$is_encrypt" == "http" ]; then
|
||||||
|
echo " \"http://$d_ip:$s_port@:$d_port\"" >>$gost_conf_path
|
||||||
else
|
else
|
||||||
echo "config error"
|
echo "config error"
|
||||||
fi
|
fi
|
||||||
@@ -726,6 +741,8 @@ function method() {
|
|||||||
echo " \"ss://$d_ip:$s_port@:$d_port\"" >>$gost_conf_path
|
echo " \"ss://$d_ip:$s_port@:$d_port\"" >>$gost_conf_path
|
||||||
elif [ "$is_encrypt" == "socks" ]; then
|
elif [ "$is_encrypt" == "socks" ]; then
|
||||||
echo " \"socks5://$d_ip:$s_port@:$d_port\"" >>$gost_conf_path
|
echo " \"socks5://$d_ip:$s_port@:$d_port\"" >>$gost_conf_path
|
||||||
|
elif [ "$is_encrypt" == "http" ]; then
|
||||||
|
echo " \"http://$d_ip:$s_port@:$d_port\"" >>$gost_conf_path
|
||||||
else
|
else
|
||||||
echo "config error"
|
echo "config error"
|
||||||
fi
|
fi
|
||||||
@@ -798,6 +815,8 @@ function show_all_conf() {
|
|||||||
str=" ss "
|
str=" ss "
|
||||||
elif [ "$is_encrypt" == "socks" ]; then
|
elif [ "$is_encrypt" == "socks" ]; then
|
||||||
str=" socks5 "
|
str=" socks5 "
|
||||||
|
elif [ "$is_encrypt" == "http" ]; then
|
||||||
|
str=" http "
|
||||||
elif [ "$is_encrypt" == "cdnno" ]; then
|
elif [ "$is_encrypt" == "cdnno" ]; then
|
||||||
str="不加密转发CDN"
|
str="不加密转发CDN"
|
||||||
elif [ "$is_encrypt" == "cdnws" ]; then
|
elif [ "$is_encrypt" == "cdnws" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user