Skip to content

Commit

Permalink
account for IPv6 addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
pschou committed Apr 27, 2022
1 parent d41c664 commit 1e22004
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 @@ -374,7 +374,7 @@ func (o ForwardIPOpts) MatchList() []string {
}

func ServiceConfigurationFromReservation(reservation string) *ServiceConfiguration {
parts := strings.Split(reservation, ":")
parts := strings.SplitN(reservation, ":", 2)
if len(parts) != 2 || len(parts[0]) == 0 || len(parts[1]) == 0 {
return nil
}
Expand Down

0 comments on commit 1e22004

Please sign in to comment.