]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests/sshserver.pl: Define AddressFamily earlier
authorSevan Janiyan <venture37@geeklan.co.uk>
Sun, 16 Apr 2023 22:21:21 +0000 (23:21 +0100)
committerDan Fandrich <dan@coneharvesters.com>
Tue, 18 Apr 2023 19:50:12 +0000 (12:50 -0700)
As the comment states "Address family must be specified before ListenAddress", otherwise the tests fail to run
`"failed starting SSH server" 52 times (582, 583, 600, 601, 602, 603, 604, 605, 606 and 43 more)`

Closes #10983

tests/sshserver.pl

index 0b4ce20dcaf4337c43126c16e5df3ae250cd92d0..2a69561892d40cfc34210fc9809d2331fd6806fd 100755 (executable)
@@ -577,6 +577,7 @@ push @cfgarr, "AuthorizedKeysFile2 $clipubkeyf_config";
 push @cfgarr, "HostKey $hstprvkeyf_config";
 if ($sshdid !~ /OpenSSH-Windows/) {
     push @cfgarr, "PidFile $pidfile_config";
+    push @cfgarr, '#';
 }
 if(($sshdid =~ /OpenSSH/) && ($sshdvernum >= 880)) {
     push @cfgarr, 'HostKeyAlgorithms +ssh-rsa';
@@ -725,7 +726,7 @@ push @cfgarr, '#';
 #
 if(sshd_supports_opt('AddressFamily','any')) {
     # Address family must be specified before ListenAddress
-    splice @cfgarr, 14, 0, 'AddressFamily any';
+    splice @cfgarr, 11, 0, 'AddressFamily any';
 }
 if(sshd_supports_opt('Compression','no')) {
     push @cfgarr, 'Compression no';