mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-10-01 01:26:08 -04:00
default to ipc only
This commit is contained in:
parent
d1aa488883
commit
6bfe9a0236
@ -130,8 +130,9 @@ fn main() -> Result<(), String> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get client address
|
// Get client address
|
||||||
let enable_ipc = settings.enable_ipc && args.address.is_none();
|
let enable_ipc = (settings.enable_ipc && args.address.is_none()) || args.ipc_path.is_some();
|
||||||
let mut enable_network = settings.enable_network && args.ipc_path.is_none();
|
let mut enable_network =
|
||||||
|
(settings.enable_network && args.ipc_path.is_none()) || args.address.is_some();
|
||||||
|
|
||||||
// Determine IPC path to try
|
// Determine IPC path to try
|
||||||
let mut client_api_ipc_path = None;
|
let mut client_api_ipc_path = None;
|
||||||
@ -209,6 +210,8 @@ fn main() -> Result<(), String> {
|
|||||||
} else if let Some(client_api_network_address) = client_api_network_addresses {
|
} else if let Some(client_api_network_address) = client_api_network_addresses {
|
||||||
let network_addr = client_api_network_address.first().cloned();
|
let network_addr = client_api_network_address.first().cloned();
|
||||||
comproc.set_network_address(network_addr);
|
comproc.set_network_address(network_addr);
|
||||||
|
} else {
|
||||||
|
return Err("veilid-server could not be reached".to_owned());
|
||||||
}
|
}
|
||||||
|
|
||||||
let comproc2 = comproc.clone();
|
let comproc2 = comproc.clone();
|
||||||
|
@ -9,7 +9,7 @@ pub fn load_default_config() -> Result<config::Config, config::ConfigError> {
|
|||||||
let default_config = r#"---
|
let default_config = r#"---
|
||||||
enable_ipc: true
|
enable_ipc: true
|
||||||
ipc_path: '%IPC_DIRECTORY%'
|
ipc_path: '%IPC_DIRECTORY%'
|
||||||
enable_network: true
|
enable_network: false
|
||||||
address: "localhost:5959"
|
address: "localhost:5959"
|
||||||
autoconnect: true
|
autoconnect: true
|
||||||
autoreconnect: true
|
autoreconnect: true
|
||||||
|
Loading…
Reference in New Issue
Block a user