Restore VLESS inbound clients
This commit is contained in:
1 parent
cf980b5673
commit
9a0dd5a943
1 file changed
+3
-3
@@ -251,7 +251,7 @@ def heartbeat(conn, payload):
|
|||||||
|
|
||||||
|
|
||||||
def make_server_xray_config(rows, listen_host="0.0.0.0", listen_port=DEFAULT_VLESS_PORT, decryption="none"):
|
def make_server_xray_config(rows, listen_host="0.0.0.0", listen_port=DEFAULT_VLESS_PORT, decryption="none"):
|
||||||
users = []
|
clients = []
|
||||||
inbounds = [
|
inbounds = [
|
||||||
{
|
{
|
||||||
"tag": "owrt-remote-vless",
|
"tag": "owrt-remote-vless",
|
||||||
@@ -259,7 +259,7 @@ def make_server_xray_config(rows, listen_host="0.0.0.0", listen_port=DEFAULT_VLE
|
|||||||
"port": int(listen_port),
|
"port": int(listen_port),
|
||||||
"protocol": "vless",
|
"protocol": "vless",
|
||||||
"settings": {
|
"settings": {
|
||||||
"users": users,
|
"clients": clients,
|
||||||
"decryption": decryption,
|
"decryption": decryption,
|
||||||
},
|
},
|
||||||
"streamSettings": {
|
"streamSettings": {
|
||||||
@@ -286,7 +286,7 @@ def make_server_xray_config(rows, listen_host="0.0.0.0", listen_port=DEFAULT_VLE
|
|||||||
}
|
}
|
||||||
if row["vless_flow"]:
|
if row["vless_flow"]:
|
||||||
client["flow"] = row["vless_flow"]
|
client["flow"] = row["vless_flow"]
|
||||||
users.append(client)
|
clients.append(client)
|
||||||
inbounds.append(
|
inbounds.append(
|
||||||
{
|
{
|
||||||
"tag": portal_in,
|
"tag": portal_in,
|
||||||
|
|||||||
Reference in new issue
Block a user