mirror of
https://github.com/cryptonote-social/csminer.git
synced 2024-09-11 05:35:23 +03:00
capi to use TLS and make -tls option actually work in minerlib
This commit is contained in:
parent
d5e4d7aecf
commit
3fc4844855
@ -22,6 +22,7 @@ func PoolLogin(
|
|||||||
Wallet: C.GoString(wallet),
|
Wallet: C.GoString(wallet),
|
||||||
Agent: C.GoString(agent),
|
Agent: C.GoString(agent),
|
||||||
Config: C.GoString(config),
|
Config: C.GoString(config),
|
||||||
|
UseTLS: true,
|
||||||
}
|
}
|
||||||
resp := minerlib.PoolLogin(args)
|
resp := minerlib.PoolLogin(args)
|
||||||
return resp.Code, C.CString(resp.Message)
|
return resp.Code, C.CString(resp.Message)
|
||||||
|
@ -207,8 +207,11 @@ func PoolLogin(args *PoolLoginArgs) *PoolLoginResponse {
|
|||||||
agent := args.Agent
|
agent := args.Agent
|
||||||
config := args.Config
|
config := args.Config
|
||||||
rigid := args.RigID
|
rigid := args.RigID
|
||||||
|
dest := "cryptonote.social:5555"
|
||||||
err, code, message, jc := cl.Connect("cryptonote.social:5555", args.UseTLS, agent, loginName, config, rigid)
|
if args.UseTLS {
|
||||||
|
dest = "cryptonote.social:5556"
|
||||||
|
}
|
||||||
|
err, code, message, jc := cl.Connect(dest, args.UseTLS, agent, loginName, config, rigid)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if code != 0 {
|
if code != 0 {
|
||||||
//crylog.Error("Pool server did not allow login due to error:")
|
//crylog.Error("Pool server did not allow login due to error:")
|
||||||
|
Loading…
Reference in New Issue
Block a user