Explorar o código

Show warning when we retry a TLS connection for downloads

Pádraic Brady %!s(int64=11) %!d(string=hai) anos
pai
achega
2972ec3d86
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/Composer/Util/RemoteFilesystem.php

+ 1 - 0
src/Composer/Util/RemoteFilesystem.php

@@ -232,6 +232,7 @@ class RemoteFilesystem
             && preg_match("|Peer certificate CN=`(.*)' did not match|i", $errorMessage, $matches)) {
                 $this->retryTls = false;
                 $expectedCommonName = $matches[1];
+                $this->io->write("    <warning>Retrying download from ".$originUrl." with SSL Cert Common Name (CN): ".$expectedCommonName."</warning>");
                 return $this->get($this->originUrl, $this->fileUrl, $additionalOptions, $this->fileName, $this->progress, $expectedCommonName);
             }
         }