From 31164677ad3e0d140d2ef7061354115c8739eec7 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 9 Feb 2020 15:37:30 +0000 Subject: [PATCH] Improve name selection in SSHFP record generation --- bin/mksshfp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mksshfp b/bin/mksshfp index 314eb43..3c1cd1d 100755 --- a/bin/mksshfp +++ b/bin/mksshfp @@ -8,7 +8,7 @@ if (-f "/etc/ssh/ssh_known_hosts") while (my $line = ) { - if ($line =~ /^(\S+) IN SSHFP (\d+) (\d+) ([0-9A-F]+)$/) + if ($line =~ /^(\S+)\.openstreetmap\.org IN SSHFP (\d+) (\d+) ([0-9A-F]+)$/) { my $host = $1; my $algorithm = $2; -- 2.39.5