Browse Source

Fix log message

pool
Sammy Libre 8 years ago
parent
commit
7c0233fc03
  1. 2
      go-pool/stratum/stratum.go

2
go-pool/stratum/stratum.go

@ -198,7 +198,7 @@ func (s *StratumServer) handleClient(cs *Session, e *Endpoint) {
var req JSONRpcReq var req JSONRpcReq
err = json.Unmarshal(data, &req) err = json.Unmarshal(data, &req)
if err != nil { if err != nil {
log.Printf("Malformed request from: %v", cs.ip, err) log.Printf("Malformed request from %s: %v", cs.ip, err)
break break
} }
s.setDeadline(cs.conn) s.setDeadline(cs.conn)

Loading…
Cancel
Save