From cbd31d1ccc9dc03357150bae70a414e8d928d8cc Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 24 Nov 2024 19:40:33 +0200 Subject: [PATCH] add comments --- src/app/browser/window/tab/item/page.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/browser/window/tab/item/page.rs b/src/app/browser/window/tab/item/page.rs index 2bf2b6e0..45643f61 100644 --- a/src/app/browser/window/tab/item/page.rs +++ b/src/app/browser/window/tab/item/page.rs @@ -482,7 +482,7 @@ impl Page { Err(reason) => todo!("{reason}"), }, None => { - // Use unauthorized TLS connection + // Use unauthorized (random) TLS connection client.set_tls(true); None } @@ -501,6 +501,8 @@ impl Page { SocketClientEvent::Connected => Status::Connected, SocketClientEvent::ProxyNegotiating => Status::ProxyNegotiating, SocketClientEvent::ProxyNegotiated => Status::ProxyNegotiated, + // This case have effect only for unauthorized (random) TLS connection + // * see `fn auth` above to handle custom certificates SocketClientEvent::TlsHandshaking => { // Handle certificate errors @TODO // https://geminiprotocol.net/docs/protocol-specification.gmi#tls-server-certificate-validation