From 3b83fa530c6119b15aba964e8b97a52ad72dae4e Mon Sep 17 00:00:00 2001 From: XMRig Date: Sat, 7 Apr 2018 01:17:58 +0700 Subject: [PATCH] #499 Disabled IPv6 for internal HTTP API by default, was cause issues on some systems. --- src/config.json | 4 +++- src/core/CommonConfig.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/config.json b/src/config.json index 858435d2..3013ba62 100644 --- a/src/config.json +++ b/src/config.json @@ -27,6 +27,8 @@ "api": { "port": 0, // port for the miner API https://github.com/xmrig/xmrig/wiki/API "access-token": null, // access token for API - "worker-id": null // custom worker-id for API + "worker-id": null, // custom worker-id for API + "ipv6": false, + "restricted": true } } \ No newline at end of file diff --git a/src/core/CommonConfig.cpp b/src/core/CommonConfig.cpp index cf18d896..8d2eb03a 100644 --- a/src/core/CommonConfig.cpp +++ b/src/core/CommonConfig.cpp @@ -53,7 +53,7 @@ static const char *algoNames[] = { xmrig::CommonConfig::CommonConfig() : m_algorithm(CRYPTONIGHT), m_adjusted(false), - m_apiIPv6(true), + m_apiIPv6(false), m_apiRestricted(true), m_background(false), m_colors(true),