Browse Source

Stratum: Accept a "notls" parameter on pool URIs to disable opportunistic TLS

Luke Dashjr 11 years ago
parent
commit
e7a74fd9d0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      util.c

+ 1 - 1
util.c

@@ -2504,7 +2504,7 @@ static bool setup_stratum_curl(struct pool *pool)
 	CURL *curl = NULL;
 	char s[RBUFSIZE];
 	bool ret = false;
-	bool try_tls = true;
+	bool try_tls = uri_get_param_bool(pool->rpc_url, "tls", true);
 
 	applog(LOG_DEBUG, "initiate_stratum with sockbuf=%p", pool->sockbuf);
 	mutex_lock(&pool->stratum_lock);