Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Commit

Permalink
Merge pull request #529 from zhouer/develop
Browse files Browse the repository at this point in the history
By default accept requests from localhost only
  • Loading branch information
benjamincburns authored Jun 27, 2018
2 parents 2259ff1 + af2b574 commit a1057dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Options:
* `-n` or `--secure`: Lock available accounts by default (good for third party transaction signing)
* `-m` or `--mnemonic`: Use a specific HD wallet mnemonic to generate initial addresses.
* `-p` or `--port`: Port number to listen on. Defaults to 8545.
* `-h` or `--hostname`: Hostname to listen on. Defaults to Node's `server.listen()` [default](https://nodejs.org/api/http.html#http_server_listen_port_hostname_backlog_callback).
* `-h` or `--hostname`: Hostname to listen on. Defaults to 127.0.0.1.
* `-s` or `--seed`: Use arbitrary data to generate the HD wallet mnemonic to be used.
* `-g` or `--gasPrice`: Use a custom Gas Price (defaults to 20000000000)
* `-l` or `--gasLimit`: Use a custom Gas Limit (defaults to 90000)
Expand Down
4 changes: 2 additions & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ if (argv.mem === true) {

var options = {
port: argv.p || argv.port || "8545",
hostname: argv.h || argv.hostname,
hostname: argv.h || argv.hostname || "127.0.0.1",
debug: argv.debug,
seed: argv.s || argv.seed,
mnemonic: argv.m || argv.mnemonic,
Expand Down Expand Up @@ -186,7 +186,7 @@ server.listen(options.port, options.hostname, function(err, result) {
}

console.log("");
console.log("Listening on " + (options.hostname || "localhost") + ":" + options.port);
console.log("Listening on " + options.hostname + ":" + options.port);
});

process.on('uncaughtException', function(e) {
Expand Down

0 comments on commit a1057dd

Please sign in to comment.