Disable gnutls error verification
authorNoodles! <nnoodle@chiru.no>
Fri, 8 Jan 2021 04:50:52 +0000 (11:50 +0700)
committerNoodles! <nnoodle@chiru.no>
Fri, 8 Jan 2021 04:50:52 +0000 (11:50 +0700)
Gemini sites timeout if the user has gnutls-verify-error set.

elpher.el

index 4c34f52..8b3a7f9 100644 (file)
--- a/elpher.el
+++ b/elpher.el
@@ -616,7 +616,8 @@ the host operating system and the local network capabilities."
     (unless (< (elpher-address-port address) 65536)
       (error "Cannot establish network connection: port number > 65536"))
     (when (and (eq use-tls 'gemini) (not elpher-gemini-TLS-cert-checks))
-      (setq-local network-security-level 'low))
+      (setq-local network-security-level 'low)
+      (setq-local gnutls-verify-error nil))
     (condition-case nil
         (let* ((kill-buffer-query-functions nil)
                (port (elpher-address-port address))