diff options
Diffstat (limited to 'web/html/xray.html')
| -rw-r--r-- | web/html/xray.html | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/web/html/xray.html b/web/html/xray.html index ce5e1ab7..186156ff 100644 --- a/web/html/xray.html +++ b/web/html/xray.html @@ -269,7 +269,7 @@ tag: "direct", protocol: "freedom" }, - routingDomainStrategies: ["AsIs", "IpIfNonMatch", "IpOnDemand"], + routingDomainStrategies: ["AsIs", "IPIfNonMatch", "IPOnDemand"], log: { loglevel: ["none", "debug", "info", "warning", "error"], access: ["none", "./access.log"], @@ -968,6 +968,17 @@ await this.getXraySetting(); await this.getXrayResult(); await this.getOutboundsTraffic(); + + if (window.wsClient) { + window.wsClient.connect(); + window.wsClient.on('outbounds', (payload) => { + if (payload) { + this.outboundsTraffic = payload; + this.$forceUpdate(); + } + }); + } + while (true) { await PromiseUtil.sleep(800); this.saveBtnDisable = this.oldXraySetting === this.xraySetting; |
