mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-05-31 12:49:22 +00:00
Check duplicated outbound tag
This commit is contained in:
parent
c2bda9fbde
commit
9bb62ad6b5
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue