Add "port" command line argument

This commit is contained in:
spikecodes 2021-02-18 11:49:50 -08:00
parent 3652342f46
commit 8560e8a37a
No known key found for this signature in database
GPG key ID: 004CECFF9B463BCB
3 changed files with 18 additions and 10 deletions

View file

@ -194,10 +194,7 @@ pub fn format_url(url: &str) -> String {
match re.captures(url) {
Some(caps) => format!("/vid/{}/{}", &caps[1], &caps[2]),
None => {
dbg!(url);
String::new()
}
None => String::new()
}
}
_ => format!("/proxy/{}/", encode(url).as_str()),