Browse Source

Bugfix: Need to do extract_sockaddr before trying to initiate stratum (erroneous http URI usage, except at startup)

Luke Dashjr 13 years ago
parent
commit
a1d6abca08
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cgminer.c

+ 1 - 1
cgminer.c

@@ -4306,7 +4306,7 @@ retry_stratum:
 	} else {
 	} else {
 		/* If we failed to parse a getwork, this could be a stratum
 		/* If we failed to parse a getwork, this could be a stratum
 		 * url without the prefix stratum+tcp:// so let's check it */
 		 * url without the prefix stratum+tcp:// so let's check it */
-		if (initiate_stratum(pool)) {
+		if (extract_sockaddr(pool, pool->rpc_url) && initiate_stratum(pool)) {
 			pool->has_stratum = true;
 			pool->has_stratum = true;
 			goto retry_stratum;
 			goto retry_stratum;
 		}
 		}