mirror of
https://github.com/creating2morrow/neveko.git
synced 2024-12-22 19:49:24 +00:00
warn on invalid i2p monero remote node
This commit is contained in:
parent
ba958f0b52
commit
6c8db495b2
1 changed files with 3 additions and 3 deletions
|
@ -202,6 +202,9 @@ pub fn start_rpc() {
|
|||
);
|
||||
let release_env = utils::get_release_env();
|
||||
let cli_args = args::Args::parse();
|
||||
if cli_args.remote_node && !&cli_args.i2p_proxy_host.contains(".i2p") {
|
||||
warn!("invalid i2p monero remote node detected");
|
||||
}
|
||||
if release_env == utils::ReleaseEnvironment::Development {
|
||||
let mut args = vec![
|
||||
"--rpc-bind-port",
|
||||
|
@ -215,9 +218,6 @@ pub fn start_rpc() {
|
|||
"--stagenet",
|
||||
];
|
||||
if cli_args.remote_node {
|
||||
if !&cli_args.i2p_proxy_host.contains(".i2p") {
|
||||
warn!("invalid i2p monero remote node detected");
|
||||
}
|
||||
args.push("--proxy");
|
||||
args.push(&cli_args.i2p_proxy_host);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue