mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
add comments
This commit is contained in:
parent
c08225b007
commit
cbd31d1ccc
@ -482,7 +482,7 @@ impl Page {
|
|||||||
Err(reason) => todo!("{reason}"),
|
Err(reason) => todo!("{reason}"),
|
||||||
},
|
},
|
||||||
None => {
|
None => {
|
||||||
// Use unauthorized TLS connection
|
// Use unauthorized (random) TLS connection
|
||||||
client.set_tls(true);
|
client.set_tls(true);
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
@ -501,6 +501,8 @@ impl Page {
|
|||||||
SocketClientEvent::Connected => Status::Connected,
|
SocketClientEvent::Connected => Status::Connected,
|
||||||
SocketClientEvent::ProxyNegotiating => Status::ProxyNegotiating,
|
SocketClientEvent::ProxyNegotiating => Status::ProxyNegotiating,
|
||||||
SocketClientEvent::ProxyNegotiated => Status::ProxyNegotiated,
|
SocketClientEvent::ProxyNegotiated => Status::ProxyNegotiated,
|
||||||
|
// This case have effect only for unauthorized (random) TLS connection
|
||||||
|
// * see `fn auth` above to handle custom certificates
|
||||||
SocketClientEvent::TlsHandshaking => {
|
SocketClientEvent::TlsHandshaking => {
|
||||||
// Handle certificate errors @TODO
|
// Handle certificate errors @TODO
|
||||||
// https://geminiprotocol.net/docs/protocol-specification.gmi#tls-server-certificate-validation
|
// https://geminiprotocol.net/docs/protocol-specification.gmi#tls-server-certificate-validation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user