Skip to content

Commit

Permalink
Check duplicated outbound tag
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Jun 26, 2023
1 parent c2bda9f commit 9bb62ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions box_outbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9bb62ad

Please sign in to comment.