diff mercurial/sslutil.py @ 34748:8c1d0fe1f431

configitems: register the 'hostfingerprints' section
author Boris Feld <boris.feld@octobus.net>
date Thu, 12 Oct 2017 00:20:41 +0200
parents dacfcdd8b94e
children 17919e9006b9
line wrap: on
line diff
--- a/mercurial/sslutil.py	Thu Oct 12 00:19:12 2017 +0200
+++ b/mercurial/sslutil.py	Thu Oct 12 00:20:41 2017 +0200
@@ -200,7 +200,7 @@
         s['certfingerprints'].append((alg, fingerprint))
 
     # Fingerprints from [hostfingerprints] are always SHA-1.
-    for fingerprint in ui.configlist('hostfingerprints', hostname, []):
+    for fingerprint in ui.configlist('hostfingerprints', hostname):
         fingerprint = fingerprint.replace(':', '').lower()
         s['certfingerprints'].append(('sha1', fingerprint))
         s['legacyfingerprint'] = True