diff --git a/box_outbound.go b/box_outbound.go index d637d766..ed96cd84 100644 --- a/box_outbound.go +++ b/box_outbound.go @@ -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 }