mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
Bind to services to all interfaces rather than loopback (#197)
* changing default ip
This commit is contained in:
parent
7f0d638107
commit
9c0411ac5e
4 changed files with 5 additions and 5 deletions
|
@ -110,7 +110,7 @@ impl Default for ServerConfig {
|
||||||
fn default() -> ServerConfig {
|
fn default() -> ServerConfig {
|
||||||
ServerConfig {
|
ServerConfig {
|
||||||
db_root: ".grin".to_string(),
|
db_root: ".grin".to_string(),
|
||||||
api_http_addr: "127.0.0.1:13415".to_string(),
|
api_http_addr: "0.0.0.0:13415".to_string(),
|
||||||
capabilities: p2p::FULL_NODE,
|
capabilities: p2p::FULL_NODE,
|
||||||
seeding_type: Seeding::None,
|
seeding_type: Seeding::None,
|
||||||
seeds: None,
|
seeds: None,
|
||||||
|
|
|
@ -73,7 +73,7 @@ pub struct P2PConfig {
|
||||||
/// Default address for peer-to-peer connections.
|
/// Default address for peer-to-peer connections.
|
||||||
impl Default for P2PConfig {
|
impl Default for P2PConfig {
|
||||||
fn default() -> P2PConfig {
|
fn default() -> P2PConfig {
|
||||||
let ipaddr = "127.0.0.1".parse().unwrap();
|
let ipaddr = "0.0.0.0".parse().unwrap();
|
||||||
P2PConfig {
|
P2PConfig {
|
||||||
host: ipaddr,
|
host: ipaddr,
|
||||||
port: 13414,
|
port: 13414,
|
||||||
|
|
|
@ -283,7 +283,7 @@ fn server_command(server_args: &ArgMatches, global_config: GlobalConfig) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(api_port) = server_args.value_of("api_port") {
|
if let Some(api_port) = server_args.value_of("api_port") {
|
||||||
let default_ip = "127.0.0.1";
|
let default_ip = "0.0.0.0";
|
||||||
server_config.api_http_addr = format!("{}:{}", default_ip, api_port);
|
server_config.api_http_addr = format!("{}:{}", default_ip, api_port);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -345,7 +345,7 @@ fn wallet_command(wallet_args: &ArgMatches) {
|
||||||
|
|
||||||
let mut wallet_config = WalletConfig::default();
|
let mut wallet_config = WalletConfig::default();
|
||||||
if let Some(port) = wallet_args.value_of("port") {
|
if let Some(port) = wallet_args.value_of("port") {
|
||||||
let default_ip = "127.0.0.1";
|
let default_ip = "0.0.0.0";
|
||||||
wallet_config.api_http_addr = format!("{}:{}", default_ip, port);
|
wallet_config.api_http_addr = format!("{}:{}", default_ip, port);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -117,7 +117,7 @@ impl Default for WalletConfig {
|
||||||
fn default() -> WalletConfig {
|
fn default() -> WalletConfig {
|
||||||
WalletConfig {
|
WalletConfig {
|
||||||
enable_wallet: false,
|
enable_wallet: false,
|
||||||
api_http_addr: "127.0.0.1:13416".to_string(),
|
api_http_addr: "0.0.0.0:13416".to_string(),
|
||||||
check_node_api_http_addr: "http://127.0.0.1:13413".to_string(),
|
check_node_api_http_addr: "http://127.0.0.1:13413".to_string(),
|
||||||
data_file_dir: ".".to_string(),
|
data_file_dir: ".".to_string(),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue