diff --git a/lib/mihari/models/artifact.rb b/lib/mihari/models/artifact.rb index 99c177d1..fccf4ac7 100644 --- a/lib/mihari/models/artifact.rb +++ b/lib/mihari/models/artifact.rb @@ -47,7 +47,7 @@ class Artifact < ActiveRecord::Base attributes reverse_dns_name: "reverse_dns_names.name" attributes cpe: "cpes.name" attributes vuln: "vulnerabilities.name" - attributes port: "ports.port" + attributes port: "ports.number" end validates_with ArtifactValidator