From a04629641cd7cb956754fc7299141925d6d7051c Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Fri, 12 Aug 2022 01:48:32 +0000 Subject: [PATCH] redirect to llamanodes --- web3_proxy/src/frontend/ws_proxy.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/web3_proxy/src/frontend/ws_proxy.rs b/web3_proxy/src/frontend/ws_proxy.rs index 6e463f9d..95294cf9 100644 --- a/web3_proxy/src/frontend/ws_proxy.rs +++ b/web3_proxy/src/frontend/ws_proxy.rs @@ -46,7 +46,10 @@ pub async fn public_websocket_handler( None => { // this is not a websocket. give a friendly page. maybe redirect to the llama nodes home // TODO: redirect to a configurable url - Redirect::to(&format_f!("https://www.etherscan.io/#userip={ip}")).into_response() + Redirect::to(&format_f!( + "https://llamanodes.com/free-rpc-stats#userip={ip}" + )) + .into_response() } } } @@ -71,8 +74,11 @@ pub async fn user_websocket_handler( None => { // this is not a websocket. give a friendly page with stats for this user // TODO: redirect to a configurable url - // TODO: should this use user_key instead? or user's address? - Redirect::to(&format_f!("https://www.etherscan.io/#userid={user_id}")).into_response() + // TODO: query to get the user's address. expose that instead of user_id + Redirect::to(&format_f!( + "https://llamanodes.com/user-rpc-stats#user_id={user_id}" + )) + .into_response() } } }