forked from wgp-2020/AX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vless.sh
42 lines (38 loc) · 804 Bytes
/
vless.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
rm -f web config.json
wget -N https://raw.githubusercontent.com/Misaka-blog/AX/main/web
chmod +x ./web
if [[ -z $id ]]; then
id="1eb6e917-774b-4a84-aff6-b058577c60a5"
fi
cat <<EOF > ~/config.json
{
"log": {
"loglevel": "warning"
},
"inbounds": [
{
"port": $PORT,
"protocol": "vless",
"settings": {
"clients": [
{
"id": "$id"
}
],
"decryption": "none"
},
"streamSettings": {
"network": "ws",
"security": "none"
}
}
],
"outbounds": [
{
"protocol": "freedom"
}
]
}
EOF
./web -config=config.json