From b69f0cfe822584b4df2216f8c11c7521556605fb Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Wed, 29 Nov 2023 23:53:41 +0100 Subject: [PATCH] use externalProxy of Fallback #656 --- sub/subService.go | 1 + web/html/xui/inbounds.html | 1 + 2 files changed, 2 insertions(+) diff --git a/sub/subService.go b/sub/subService.go index 3b5820d7..543f1133 100644 --- a/sub/subService.go +++ b/sub/subService.go @@ -53,6 +53,7 @@ func (s *SubService) GetSubs(subId string, host string, showInfo bool) ([]string json.Unmarshal([]byte(fallbackMaster.StreamSettings), &masterStream) stream["security"] = masterStream["security"] stream["tlsSettings"] = masterStream["tlsSettings"] + stream["externalProxy"] = masterStream["externalProxy"] modifiedStream, _ := json.MarshalIndent(stream, "", " ") inbound.StreamSettings = string(modifiedStream) } diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index 86a4eee8..4a90222a 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -988,6 +988,7 @@ newInbound = newDbInbound.toInbound(); newInbound.stream.security = rootInbound.stream.security; newInbound.stream.tls = rootInbound.stream.tls; + newInbound.stream.externalProxy = rootInbound.stream.externalProxy; newDbInbound.streamSettings = newInbound.stream.toString(); } }