removed proxies
This commit is contained in:
@@ -283,7 +283,7 @@ impl PmvhavenProvider {
|
|||||||
|
|
||||||
let response = client
|
let response = client
|
||||||
.post(url.clone())
|
.post(url.clone())
|
||||||
.proxy(proxy)
|
// .proxy(proxy)
|
||||||
.json(&request)
|
.json(&request)
|
||||||
.header("Content-Type", "text/plain;charset=UTF-8")
|
.header("Content-Type", "text/plain;charset=UTF-8")
|
||||||
.send()
|
.send()
|
||||||
@@ -362,7 +362,7 @@ impl PmvhavenProvider {
|
|||||||
|
|
||||||
let response = client
|
let response = client
|
||||||
.post(url.clone())
|
.post(url.clone())
|
||||||
.proxy(proxy)
|
// .proxy(proxy)
|
||||||
.json(&request)
|
.json(&request)
|
||||||
.header("Content-Type", "application/json")
|
.header("Content-Type", "application/json")
|
||||||
.header("Accept", "application/json")
|
.header("Accept", "application/json")
|
||||||
|
|||||||
@@ -55,12 +55,12 @@ impl PornhubProvider {
|
|||||||
let client = Client::builder().cert_verification(false).emulation(Emulation::Firefox136).build()?;
|
let client = Client::builder().cert_verification(false).emulation(Emulation::Firefox136).build()?;
|
||||||
|
|
||||||
let mut response = client.get(url.clone())
|
let mut response = client.get(url.clone())
|
||||||
.proxy(proxy.clone())
|
// .proxy(proxy.clone())
|
||||||
.send().await?;
|
.send().await?;
|
||||||
if response.status().is_redirection(){
|
if response.status().is_redirection(){
|
||||||
|
|
||||||
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
||||||
.proxy(proxy)
|
// .proxy(proxy)
|
||||||
.send().await?;
|
.send().await?;
|
||||||
}
|
}
|
||||||
if response.status().is_success() {
|
if response.status().is_success() {
|
||||||
|
|||||||
@@ -73,9 +73,13 @@ impl Rule34videoProvider {
|
|||||||
let proxy = Proxy::all("http://192.168.0.103:8081").unwrap();
|
let proxy = Proxy::all("http://192.168.0.103:8081").unwrap();
|
||||||
let client = Client::builder().cert_verification(false).emulation(Emulation::Firefox136).build()?;
|
let client = Client::builder().cert_verification(false).emulation(Emulation::Firefox136).build()?;
|
||||||
|
|
||||||
let mut response = client.get(url.clone()).proxy(proxy.clone()).send().await?;
|
let mut response = client.get(url.clone())
|
||||||
|
// .proxy(proxy.clone())
|
||||||
|
.send().await?;
|
||||||
while response.status().is_redirection(){
|
while response.status().is_redirection(){
|
||||||
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap()).proxy(proxy.clone()).send().await?;
|
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
||||||
|
// .proxy(proxy.clone())
|
||||||
|
.send().await?;
|
||||||
}
|
}
|
||||||
if response.status().is_success() {
|
if response.status().is_success() {
|
||||||
let text = response.text().await?;
|
let text = response.text().await?;
|
||||||
@@ -156,11 +160,15 @@ impl Rule34videoProvider {
|
|||||||
let proxy = Proxy::all("http://192.168.0.103:8081").unwrap();
|
let proxy = Proxy::all("http://192.168.0.103:8081").unwrap();
|
||||||
let client = Client::builder().cert_verification(false).emulation(Emulation::Firefox136).build()?;
|
let client = Client::builder().cert_verification(false).emulation(Emulation::Firefox136).build()?;
|
||||||
|
|
||||||
let mut response = client.get(url.clone()).proxy(proxy.clone()).send().await?;
|
let mut response = client.get(url.clone())
|
||||||
|
// .proxy(proxy.clone())
|
||||||
|
.send().await?;
|
||||||
|
|
||||||
if response.status().is_redirection(){
|
if response.status().is_redirection(){
|
||||||
|
|
||||||
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap()).proxy(proxy).send().await?;
|
response = client.get(self.url.clone() + response.headers()["Location"].to_str().unwrap())
|
||||||
|
// .proxy(proxy)
|
||||||
|
.send().await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
if response.status().is_success() {
|
if response.status().is_success() {
|
||||||
|
|||||||
Reference in New Issue
Block a user