mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-22 12:49:20 +02:00
parent
3500f5b577
commit
1d89ae2847
|
@ -487,7 +487,7 @@ func (c *Config) Override(o *Config, fn string) {
|
||||||
}
|
}
|
||||||
// deprecated attrs
|
// deprecated attrs
|
||||||
|
|
||||||
// update the Inbound in slice if the only one in overide config has same tag
|
// update the Inbound in slice if the only one in override config has same tag
|
||||||
if len(o.InboundConfigs) > 0 {
|
if len(o.InboundConfigs) > 0 {
|
||||||
for i := range o.InboundConfigs {
|
for i := range o.InboundConfigs {
|
||||||
if idx := c.findInboundTag(o.InboundConfigs[i].Tag); idx > -1 {
|
if idx := c.findInboundTag(o.InboundConfigs[i].Tag); idx > -1 {
|
||||||
|
@ -502,7 +502,7 @@ func (c *Config) Override(o *Config, fn string) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// update the Outbound in slice if the only one in overide config has same tag
|
// update the Outbound in slice if the only one in override config has same tag
|
||||||
if len(o.OutboundConfigs) > 0 {
|
if len(o.OutboundConfigs) > 0 {
|
||||||
outboundPrepends := []OutboundDetourConfig{}
|
outboundPrepends := []OutboundDetourConfig{}
|
||||||
for i := range o.OutboundConfigs {
|
for i := range o.OutboundConfigs {
|
||||||
|
|
Loading…
Reference in New Issue