You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
967 B

  1. From 81d584b9027b2b2ddd3209c1582c9ec73c26cc3e Mon Sep 17 00:00:00 2001
  2. From: Simon Wells <simonrwells@gmail.com>
  3. Date: Sun, 27 May 2018 13:44:41 -0700
  4. Subject: [PATCH] Change TR_CURL_SSL_VERIFY to TR_CURL_SSL_NO_VERIFY
  5. use secure by default and change the env var to match curl -k behaviour
  6. Closes: #179
  7. ---
  8. libtransmission/web.c | 2 +-
  9. 1 file changed, 1 insertion(+), 1 deletion(-)
  10. diff --git a/libtransmission/web.c b/libtransmission/web.c
  11. index 997a151b5..ce41e342a 100644
  12. --- a/libtransmission/web.c
  13. +++ b/libtransmission/web.c
  14. @@ -392,7 +392,7 @@ tr_webThreadFunc (void * vsession)
  15. web->taskLock = tr_lockNew ();
  16. web->tasks = NULL;
  17. web->curl_verbose = tr_env_key_exists ("TR_CURL_VERBOSE");
  18. - web->curl_ssl_verify = tr_env_key_exists ("TR_CURL_SSL_VERIFY");
  19. + web->curl_ssl_verify = !tr_env_key_exists ("TR_CURL_SSL_NO_VERIFY");
  20. web->curl_ca_bundle = tr_env_get_string ("CURL_CA_BUNDLE", NULL);
  21. if (web->curl_ssl_verify)
  22. {
  23. --
  24. 2.17.0