From bdca51b14ffdb9f7e0a987e078b44af00b7bb993 Mon Sep 17 00:00:00 2001 From: yuzuki999 Date: Fri, 22 Sep 2023 19:30:47 +0800 Subject: [PATCH] update example --- example/config.json | 2 +- example/config_full.json | 20 ++++++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/example/config.json b/example/config.json index 0b65060..34fbf26 100644 --- a/example/config.json +++ b/example/config.json @@ -29,7 +29,7 @@ "ListenIP": "0.0.0.0", "SendIP": "0.0.0.0", "EnableProxyProtocol": false, - "EnableDNS": true + "EnableDNS": true, "DomainStrategy": "ipv4_only", "LimitConfig": { "EnableRealtime": false, diff --git a/example/config_full.json b/example/config_full.json index 71b9e5d..cfc7643 100644 --- a/example/config_full.json +++ b/example/config_full.json @@ -36,7 +36,7 @@ "Log": { "Level": "info", "Timestamp": false - }, + } }, { "Type": "xray", @@ -182,10 +182,6 @@ } } }, - { - // 引用其他配置文件 - "Include": "../example/config_full_node1.json", - }, { // xray内核 @@ -227,7 +223,7 @@ "Alpn": "", "Path": "", "Dest": "", - "ProxyProtocolVer": 0, + "ProxyProtocolVer": 0 } }, { @@ -238,16 +234,24 @@ "ApiHost": "http://127.0.0.1", "ApiKey": "test", "NodeID": 33, - "Timeout": 30, + "Timeout": 30 }, // 类似旧配置文件 ControllerConfig 部分 "Options": { "Core": "sing", "EnableProxyProtocol": true, "EnableTFO": true, - "DomainStrategy": "ipv4_only", + "DomainStrategy": "ipv4_only" // More } + }, + { + // 引用本地其他配置文件 + "Include": "../example/config_full_node1.json" + }, + { + // 通过Http引用远端配置文件 + "Include": "http://127.0.0.1:11451/config_full_node1.json" } ] } \ No newline at end of file