Check duplicated outbound tag
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user