mirror of
https://github.com/cryptonote-social/csminer.git
synced 2024-09-11 05:35:23 +03:00
fix reconnect issue when using TLS
This commit is contained in:
parent
3e7e434f83
commit
13f698be07
@ -183,7 +183,7 @@ func getServerHostPort(useTLS, dev bool) string {
|
|||||||
return "cryptonote.social:5556"
|
return "cryptonote.social:5556"
|
||||||
case !useTLS && !dev:
|
case !useTLS && !dev:
|
||||||
return "cryptonote.social:5555"
|
return "cryptonote.social:5555"
|
||||||
case useTLS && !dev:
|
case useTLS && dev:
|
||||||
return "cryptonote.social:4445"
|
return "cryptonote.social:4445"
|
||||||
// case !useTLS && dev:
|
// case !useTLS && dev:
|
||||||
default:
|
default:
|
||||||
@ -339,8 +339,8 @@ func reconnectClient() <-chan *client.MultiClientJob {
|
|||||||
loginName = plArgs.Wallet + "." + plArgs.Username
|
loginName = plArgs.Wallet + "." + plArgs.Username
|
||||||
}
|
}
|
||||||
crylog.Info("Attempting to reconnect...")
|
crylog.Info("Attempting to reconnect...")
|
||||||
err, code, message, jc := cl.Connect(
|
dest := getServerHostPort(plArgs.UseTLS, plArgs.Dev)
|
||||||
"cryptonote.social:5555", plArgs.UseTLS, plArgs.Agent, loginName, plArgs.Config, plArgs.RigID)
|
err, code, message, jc := cl.Connect(dest, plArgs.UseTLS, plArgs.Agent, loginName, plArgs.Config, plArgs.RigID)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
if code != 0 {
|
if code != 0 {
|
||||||
crylog.Warn("Pool server returned login warning:", message)
|
crylog.Warn("Pool server returned login warning:", message)
|
||||||
|
Loading…
Reference in New Issue
Block a user