fixed xray port processing (#983)
* fixed xray port processing * fixed saving port when changing xray settings and saving transport protocol when changing all the protocols settings
This commit is contained in:
parent
a1e68f5506
commit
6c5d590169
10 changed files with 70 additions and 107 deletions
|
@ -29,7 +29,7 @@ cat > /opt/amnezia/xray/server.json <<EOF
|
|||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"port": "$XRAY_SERVER_PORT",
|
||||
"port": $XRAY_SERVER_PORT,
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"clients": [
|
||||
|
@ -44,7 +44,7 @@ cat > /opt/amnezia/xray/server.json <<EOF
|
|||
"network": "tcp",
|
||||
"security": "reality",
|
||||
"realitySettings": {
|
||||
"dest": "$XRAY_SITE_NAME:$XRAY_SERVER_PORT",
|
||||
"dest": "$XRAY_SITE_NAME:443",
|
||||
"serverNames": [
|
||||
"$XRAY_SITE_NAME"
|
||||
],
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
"vnext": [
|
||||
{
|
||||
"address": "$SERVER_IP_ADDRESS",
|
||||
"port": "$XRAY_SERVER_PORT",
|
||||
"port": $XRAY_SERVER_PORT,
|
||||
"users": [
|
||||
{
|
||||
"id": "$XRAY_CLIENT_ID",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue