Skip to content

Commit db3dcbd

Browse files
add RPC.Host setting to config file
1 parent 3a64a49 commit db3dcbd

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
global.VERSION = '1.0.5';
3+
global.VERSION = '1.0.6';
44

55
global.logger = logger = require('./lib/log');
66
logger.init(process.cwd(), 'log.txt');

lib/rpc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ module.exports = class RPCServer extends EventEmitter {
7272

7373
});
7474

75-
server.http().listen(config.RPC.Port, () => {
76-
LogB('JSON-RPC server listening on localhost:' + config.RPC.Port);
75+
server.http().listen(config.RPC.Port, config.RPC.Host, () => {
76+
LogB(`JSON-RPC server listening on ${config.RPC.Host}:${config.RPC.Port}`);
7777

7878
}).on('error', (err) => {
7979
if (err.code === 'EADDRINUSE') {

release/config.ini

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

22
[General]
33
CloseToTray=0
4-
FirstRun=1
54

65
[Miner]
76
; the ETH address to use for mining payouts. this has to match
@@ -16,6 +15,11 @@ Port=8090
1615

1716

1817
[RPC]
18+
; interface address to listen on for incoming connections. set to
19+
; 0.0.0.0 to listen on all interfaces, which means the proxy will accept
20+
; connections from other computers on the network. set to localhost to
21+
; only accept connections from the local computer.
22+
Host=0.0.0.0
1923
; this is the port this proxy listens on for requests from the miner.
2024
; it has to match the setting in your mining software.
2125
Port=8080

0 commit comments

Comments
 (0)