Added TLS support for API and many other TLS related changes.
This commit is contained in:
parent
92a258f142
commit
5b610e4dfe
38 changed files with 1601 additions and 178 deletions
|
@ -5,8 +5,8 @@
|
|||
* Copyright 2014-2016 Wolf9466 <https://github.com/OhGodAPet>
|
||||
* Copyright 2016 Jay D Dee <jayddee246@gmail.com>
|
||||
* Copyright 2017-2018 XMR-Stak <https://github.com/fireice-uk>, <https://github.com/psychocrypt>
|
||||
* Copyright 2018-2019 SChernykh <https://github.com/SChernykh>
|
||||
* Copyright 2016-2019 XMRig <https://github.com/xmrig>, <support@xmrig.com>
|
||||
* Copyright 2018-2020 SChernykh <https://github.com/SChernykh>
|
||||
* Copyright 2016-2020 XMRig <https://github.com/xmrig>, <support@xmrig.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -34,11 +34,11 @@ static const xmrig::String kLocalHost("127.0.0.1");
|
|||
|
||||
xmrig::TcpServer::TcpServer(const String &host, uint16_t port, ITcpServerListener *listener) :
|
||||
m_host(host.isNull() ? kLocalHost : host),
|
||||
m_version(0),
|
||||
m_listener(listener),
|
||||
m_addr(),
|
||||
m_port(port)
|
||||
{
|
||||
assert(m_listener != nullptr);
|
||||
|
||||
m_tcp = new uv_tcp_t;
|
||||
uv_tcp_init(uv_default_loop(), m_tcp);
|
||||
m_tcp->data = this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue