Skip to content

Commit

Permalink
fatal when multiple services are reserved with the same IP.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjimti committed Oct 27, 2021
1 parent 73e2304 commit 9b7ac52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/fwdIp/fwdIp.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func notifyOfDuplicateIPReservations(f *ForwardConfiguration) {
requestedIPs := map[string]bool{}
for _, svcCfg := range f.ServiceConfigurations {
if _, ok := requestedIPs[svcCfg.IP]; ok {
log.Warn(fmt.Sprintf("IP %s cannot be used as a reservation for multiple services", svcCfg.IP))
log.Fatal(fmt.Sprintf("IP %s cannot be used as a reservation for multiple services", svcCfg.IP))
}
requestedIPs[svcCfg.IP] = true
}
Expand Down

0 comments on commit 9b7ac52

Please sign in to comment.