mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-08 03:34:13 +08:00
Check duplicated outbound tag
This commit is contained in:
parent
c2bda9fbde
commit
9bb62ad6b5
@ -19,6 +19,9 @@ func (s *Box) startOutbounds() error {
|
||||
} else {
|
||||
outboundTag = outboundToStart.Tag()
|
||||
}
|
||||
if _, exists := outbounds[outboundTag]; exists {
|
||||
return E.New("outbound tag ", outboundTag, " duplicated")
|
||||
}
|
||||
outboundTags[outboundToStart] = outboundTag
|
||||
outbounds[outboundTag] = outboundToStart
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user