mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-12 19:54:45 +00:00
log inbound override status
This commit is contained in:
parent
4f8b73bb1f
commit
42d586df09
|
@ -492,11 +492,11 @@ func (c *Config) Override(o *Config, fn string) {
|
||||||
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 {
|
||||||
c.InboundConfigs[idx] = o.InboundConfigs[i]
|
c.InboundConfigs[idx] = o.InboundConfigs[i]
|
||||||
ctllog.Println("[", fn, "] updated inbound with tag: ", o.InboundConfigs[0].Tag)
|
newError("[", fn, "] updated inbound with tag: ", o.InboundConfigs[i].Tag).AtInfo().WriteToLog()
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
c.InboundConfigs = append(c.InboundConfigs, o.InboundConfigs[i])
|
c.InboundConfigs = append(c.InboundConfigs, o.InboundConfigs[i])
|
||||||
ctllog.Println("[", fn, "] appended inbound with tag: ", o.InboundConfigs[0].Tag)
|
newError("[", fn, "] appended inbound with tag: ", o.InboundConfigs[i].Tag).AtInfo().WriteToLog()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue