|
|
@@ -2,7 +2,7 @@ use std::{
|
|
|
env::{temp_dir, var},
|
|
|
fs::{self, File},
|
|
|
io::{self, Read, Write},
|
|
|
- net::SocketAddr,
|
|
|
+ net::{IpAddr, Ipv4Addr, SocketAddr},
|
|
|
ops::Index,
|
|
|
process::Command,
|
|
|
};
|
|
|
@@ -24,6 +24,12 @@ pub struct TauConfig {
|
|
|
pub rpc_listen: SocketAddr,
|
|
|
}
|
|
|
|
|
|
+impl Default for TauConfig {
|
|
|
+ fn default() -> Self {
|
|
|
+ Self { rpc_listen: SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), 11055) }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
#[derive(Subcommand)]
|
|
|
pub enum CliTauSubCommands {
|
|
|
/// Add a new task
|