If no stratum url is set by the end of the detect stratum routine, copy the sockaddr url.
diff --git a/cgminer.c b/cgminer.c
index 20b7436..f01ee15 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -571,6 +571,8 @@ bool detect_stratum(struct pool *pool, char *url)
if (!strncasecmp(url, "stratum+tcp://", 14) || stratum) {
pool->has_stratum = true;
+ if (!pool->stratum_url)
+ pool->stratum_url = pool->sockaddr_url;
return true;
}