use externalProxy of Fallback #656

This commit is contained in:
Alireza Ahmadi
2023-11-29 23:53:41 +01:00
parent e2912448d6
commit b69f0cfe82
2 changed files with 2 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ func (s *SubService) GetSubs(subId string, host string, showInfo bool) ([]string
json.Unmarshal([]byte(fallbackMaster.StreamSettings), &masterStream) json.Unmarshal([]byte(fallbackMaster.StreamSettings), &masterStream)
stream["security"] = masterStream["security"] stream["security"] = masterStream["security"]
stream["tlsSettings"] = masterStream["tlsSettings"] stream["tlsSettings"] = masterStream["tlsSettings"]
stream["externalProxy"] = masterStream["externalProxy"]
modifiedStream, _ := json.MarshalIndent(stream, "", " ") modifiedStream, _ := json.MarshalIndent(stream, "", " ")
inbound.StreamSettings = string(modifiedStream) inbound.StreamSettings = string(modifiedStream)
} }

View File

@@ -988,6 +988,7 @@
newInbound = newDbInbound.toInbound(); newInbound = newDbInbound.toInbound();
newInbound.stream.security = rootInbound.stream.security; newInbound.stream.security = rootInbound.stream.security;
newInbound.stream.tls = rootInbound.stream.tls; newInbound.stream.tls = rootInbound.stream.tls;
newInbound.stream.externalProxy = rootInbound.stream.externalProxy;
newDbInbound.streamSettings = newInbound.stream.toString(); newDbInbound.streamSettings = newInbound.stream.toString();
} }
} }