From 1b811437f17287b46f08bcf51776ab65042844fe Mon Sep 17 00:00:00 2001 From: Victoria Jeffrey Date: Mon, 17 Apr 2023 14:37:04 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20host=20scans=20should=20get=20ho?= =?UTF-8?q?st=20platform=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- motor/providers/network/provider.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/motor/providers/network/provider.go b/motor/providers/network/provider.go index 4e10e37fad..bfe0f17714 100644 --- a/motor/providers/network/provider.go +++ b/motor/providers/network/provider.go @@ -16,14 +16,16 @@ type Provider struct { func New(conf *providers.Config) (*Provider, error) { family := []string{"network"} + s := providers.ProviderID_HOST if _, ok := conf.Options["tls"]; ok { family = append(family, "tls") + s = providers.ProviderID_TLS } return &Provider{ FQDN: conf.Host, Port: conf.Port, - Scheme: conf.Options["scheme"], + Scheme: s, Family: family, Options: conf.Options, }, nil