forked from xumng123/clash
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
mzkingk edited this page Apr 5, 2022
·
7 revisions
xtls-rprx-splice模式暂不支持,会被强行转成xtls-rprx-direct
配置示例
vless + xtls + direct
- name: xtls
server: www.example.top
port: 443
type: vless
uuid: 78ca21d1-1254-e0ae-f289-4aba111f3a5d
cipher: auto
network: http
tls: true
flow: xtls-rprx-direct
skip-cert-verify: true
vless + grpc
- name: vless_grpc
server: www.example.top
servername: www.example.top
port: 443
type: vless
uuid: 78ca21d1-1254-e0ae-f289-4aba111f3a5d
cipher: auto
network: grpc
tls: true
skip-cert-verify: true
grpc-opts:
grpc-service-name: "examplegrpc"
trojan + direct + grpc
- name: tg
server: www.example.top
port: 443
type: trojan
password: 78ca21d1-1254-e0ae-f289-4aba111f3a5d
network: grpc
sni: www.example.top
flow: xtls-rprx-direct
skip-cert-verify: true
udp: false
grpc-opts:
grpc-service-name: "trojangrpc"
准备工作
goversion=1.18
sudo apt install make gcc zip
wget https://dl.google.com/go/go${goversion}.linux-amd64.tar.gz
tar -C /usr/local -zxvf go${goversion}.linux-amd64.tar.gz
rm -rf go${goversion}.linux-amd64.tar.gz
vim /etc/profile
# 在最后一行添加
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin
安装upx
wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz
tar xf upx-3.96-amd64_linux.tar.xz
mv upx-3.96-amd64_linux/upx /usr/bin/
rm -rf upx-3.96-amd64_linux*
代码根目录
make clean
make -j releases