Skip to content

Commit

Permalink
Fix forward rule validation (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
outofforest committed Aug 9, 2024
1 parent 42baa08 commit eaef917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ func parseMetadata(domainDoc libvirtxml.Domain) (metadata, error) {
return metadata{}, errors.Errorf("invalid forward rule %q", rule)
}
parts2 := strings.SplitN(parts1[2], "/", 2)
if len(parts1) != 3 {
if len(parts2) != 2 {
return metadata{}, errors.Errorf("invalid forward rule %q", rule)
}

Expand Down

0 comments on commit eaef917

Please sign in to comment.