mirror of
https://github.com/storytold/voder-proxy.git
synced 2026-10-19 07:43:12 +00:00
add debugging to catch-all route
This commit is contained in:
@@ -229,6 +229,7 @@ fn main() -> AnyhowResult<()> {
|
|||||||
speak_proxy(req, remote_addr.clone(), router3, "/speak_spectrogram"),
|
speak_proxy(req, remote_addr.clone(), router3, "/speak_spectrogram"),
|
||||||
_ => {
|
_ => {
|
||||||
let forward = router3.get_random_host();
|
let forward = router3.get_random_host();
|
||||||
|
info!("Forwarding to `{}` random host: {}", &forward, req.uri());
|
||||||
hyper_reverse_proxy::call(remote_addr.ip(), &forward, req)
|
hyper_reverse_proxy::call(remote_addr.ip(), &forward, req)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user