fix config item name
This commit is contained in:
parent
04d95f7234
commit
4d18d50307
@ -254,7 +254,7 @@ impl Web3ProxyApp {
|
|||||||
if let Some(redirect) = &top_config.app.redirect_rpc_key_url {
|
if let Some(redirect) = &top_config.app.redirect_rpc_key_url {
|
||||||
assert!(
|
assert!(
|
||||||
redirect.contains("{{rpc_key_id}}"),
|
redirect.contains("{{rpc_key_id}}"),
|
||||||
"redirect_user_url user url must contain \"{{rpc_key_id}}\""
|
"redirect_rpc_key_url user url must contain \"{{rpc_key_id}}\""
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,12 +70,12 @@ impl CheckConfigSubCommand {
|
|||||||
// TODO: also check that it contains rpc_key_id!
|
// TODO: also check that it contains rpc_key_id!
|
||||||
match top_config.app.redirect_rpc_key_url {
|
match top_config.app.redirect_rpc_key_url {
|
||||||
None => {
|
None => {
|
||||||
warn!("app.redirect_user_url is None. Registered users will get an error page instead of a redirect")
|
warn!("app.redirect_rpc_key_url is None. Registered users will get an error page instead of a redirect")
|
||||||
}
|
}
|
||||||
Some(x) => {
|
Some(x) => {
|
||||||
if !x.contains("{{rpc_key_id}}") {
|
if !x.contains("{{rpc_key_id}}") {
|
||||||
num_errors += 1;
|
num_errors += 1;
|
||||||
error!("redirect_user_url user url must contain \"{{rpc_key_id}}\"")
|
error!("redirect_rpc_key_url user url must contain \"{{rpc_key_id}}\"")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user