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.

26 lines
900 B

  1. From 6de0a3d7a3cd0b2ca6d1b33b5d4d7f44908c1ac3 Mon Sep 17 00:00:00 2001
  2. From: Rosen Penev <rosenp@gmail.com>
  3. Date: Thu, 1 Mar 2018 11:21:43 -0800
  4. Subject: [PATCH] portcheck: Switch to HTTPS.
  5. Useful for OpenWrt.
  6. ---
  7. libtransmission/rpcimpl.c | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/libtransmission/rpcimpl.c b/libtransmission/rpcimpl.c
  10. index 46fd3192c..dcd96df59 100644
  11. --- a/libtransmission/rpcimpl.c
  12. +++ b/libtransmission/rpcimpl.c
  13. @@ -1455,7 +1455,7 @@ portTest (tr_session * session,
  14. struct tr_rpc_idle_data * idle_data)
  15. {
  16. const int port = tr_sessionGetPeerPort (session);
  17. - char * url = tr_strdup_printf ("http://portcheck.transmissionbt.com/%d", port);
  18. + char * url = tr_strdup_printf ("https://portcheck.transmissionbt.com/%d", port);
  19. tr_webRun (session, url, portTested, idle_data);
  20. tr_free (url);
  21. return NULL;
  22. --
  23. 2.14.3