Xray tag
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
"inbounds": [{
|
||||
"port": 10086,
|
||||
"listen": "127.0.0.1",
|
||||
"tag": "VLESS-in",
|
||||
"tag": "VLESS-ws-in",
|
||||
"protocol": "VLESS",
|
||||
"settings": {
|
||||
"clients": [{
|
||||
@@ -48,9 +48,7 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [{
|
||||
"type": "field",
|
||||
"inboundTag": [
|
||||
"VLESS-in"
|
||||
],
|
||||
"inboundTag": ["VLESS-ws-in"],
|
||||
"outboundTag": "direct"
|
||||
}]
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
"inbounds": [{
|
||||
"port": 443,
|
||||
"protocol": "VLESS",
|
||||
"tag": "VLESS-XTLS-in",
|
||||
"settings": {
|
||||
"clients": [{
|
||||
"id": "UUID",
|
||||
@@ -36,7 +37,7 @@
|
||||
{
|
||||
"port": 10086,
|
||||
"listen": "127.0.0.1",
|
||||
"tag": "VLESS-in",
|
||||
"tag": "VLESS-ws-in",
|
||||
"protocol": "VLESS",
|
||||
"settings": {
|
||||
"clients": [{
|
||||
@@ -78,7 +79,7 @@
|
||||
"domainStrategy": "AsIs",
|
||||
"rules": [{
|
||||
"type": "field",
|
||||
"inboundTag": ["VLESS-in"],
|
||||
"inboundTag": ["VLESS-XTLS-in", "VLESS-ws-in"],
|
||||
"outboundTag": "direct"
|
||||
}]
|
||||
}
|
||||
|
||||
+2
-2
@@ -33,7 +33,7 @@ Error="${Red}[错误]${Font}"
|
||||
Warning="${Red}[警告]${Font}"
|
||||
|
||||
# 版本
|
||||
shell_version="1.5.4.8"
|
||||
shell_version="1.5.4.9"
|
||||
shell_mode="None"
|
||||
shell_mode_show="未安装"
|
||||
version_cmp="/tmp/version_cmp.tmp"
|
||||
@@ -348,7 +348,7 @@ modify_inbound_port() {
|
||||
elif [[ "$shell_mode" == "xtls" ]]; then
|
||||
# sed -i "/\"port\"/c \ \"port\":${port}," ${xray_conf}
|
||||
sed -i "8c\ \"port\": ${port}," ${xray_conf}
|
||||
sed -i "37c\ \"port\": ${xport}," ${xray_conf}
|
||||
sed -i "38c\ \"port\": ${xport}," ${xray_conf}
|
||||
fi
|
||||
judge "Xray port 修改"
|
||||
if [[ "$shell_mode" != "ws" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user