mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-22 00:21:30 +00: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…
Reference in a new issue