mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-22 08:31: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 {
|
} else {
|
||||||
outboundTag = outboundToStart.Tag()
|
outboundTag = outboundToStart.Tag()
|
||||||
}
|
}
|
||||||
|
if _, exists := outbounds[outboundTag]; exists {
|
||||||
|
return E.New("outbound tag ", outboundTag, " duplicated")
|
||||||
|
}
|
||||||
outboundTags[outboundToStart] = outboundTag
|
outboundTags[outboundToStart] = outboundTag
|
||||||
outbounds[outboundTag] = outboundToStart
|
outbounds[outboundTag] = outboundToStart
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue