bhcli

A TUI for chatting on LE PHP Chats (onion)
git clone https://git.dasho.dev/n0tr1v/bhcli.git
Log | Files | Refs | README

commit 12583ac857973dc9ad9e2e938ec4d9742f7c2390
parent 2af717560d1c56276a81cc954972cbb1c72ac325
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Mon, 27 Mar 2023 22:04:52 -0700

update user-agent

Diffstat:
Msrc/main.rs | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.rs b/src/main.rs @@ -866,7 +866,7 @@ impl LeChatPHPClient { StatusCode::INTERNAL_SERVER_ERROR => return Err(SERVER_DOWN_500_ERR.into()), _ => {} } - + let mut refresh_header = resp.headers().get("refresh").map(|v| v.to_str().unwrap()).unwrap_or(""); while refresh_header != "" { let rgx = Regex::new(r#"URL=(.+)"#).unwrap(); @@ -1968,7 +1968,7 @@ fn get_guest_color(wanted: Option<String>) -> String { } fn get_tor_client(socks_proxy_url: &str) -> Client { - let ua = "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"; + let ua = "Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Firefox/102.0"; let proxy = reqwest::Proxy::all(socks_proxy_url).unwrap(); reqwest::blocking::ClientBuilder::new() .cookie_store(true)