mirror of
https://github.com/alireza0/x-ui.git
synced 2026-03-13 21:13:09 +00:00
use externalProxy of Fallback #656
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user