From 011c42909734c9170e409f8f3e881ab6147d3930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Michel?= Date: Wed, 3 Jan 2024 10:31:07 +0000 Subject: [PATCH] known hosts: design hosts by their canonical representation --- cmd/ssh3/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ssh3/main.go b/cmd/ssh3/main.go index 9a70e24..005d7bd 100644 --- a/cmd/ssh3/main.go +++ b/cmd/ssh3/main.go @@ -76,7 +76,7 @@ func setupQUICConnection(ctx context.Context, skipHostVerification bool, keylog qconf.EnableDatagrams = true qconf.KeepAlivePeriod = 1 * time.Second - if certs, ok := knownHosts[options.Hostname()]; ok { + if certs, ok := knownHosts[options.CaonicalHostFormat()]; ok { foundSelfsignedSSH3 := false for _, cert := range certs {