mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
set default timeout
This commit is contained in:
parent
6cb2f0ebea
commit
a044fe82dd
1 changed files with 1 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ impl Page {
|
||||||
"gemini" => {
|
"gemini" => {
|
||||||
let client = SocketClient::new();
|
let client = SocketClient::new();
|
||||||
|
|
||||||
|
client.set_timeout(10);
|
||||||
client.set_tls(true);
|
client.set_tls(true);
|
||||||
client.set_tls_validation_flags(TlsCertificateFlags::INSECURE);
|
client.set_tls_validation_flags(TlsCertificateFlags::INSECURE);
|
||||||
client.set_protocol(SocketProtocol::Tcp);
|
client.set_protocol(SocketProtocol::Tcp);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue