]> git.openstreetmap.org Git - dns.git/commitdiff
Improve name selection in SSHFP record generation
authorTom Hughes <tom@compton.nu>
Sun, 9 Feb 2020 15:37:30 +0000 (15:37 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 9 Feb 2020 15:37:30 +0000 (15:37 +0000)
bin/mksshfp

index 314eb43c9904caac1348f88583dab08fb9f28746..3c1cd1dd49c4e327f8dd81d7629696b5ca63e148 100755 (executable)
@@ -8,7 +8,7 @@ if (-f "/etc/ssh/ssh_known_hosts")
 
     while (my $line = <SSHFP>)
     {
-        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;