mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
toggle set_tls for guest sessions
This commit is contained in:
parent
8f2820b171
commit
c61164e666
1 changed files with 4 additions and 0 deletions
|
|
@ -50,6 +50,10 @@ impl Client {
|
|||
certificate: Option<TlsCertificate>,
|
||||
callback: impl Fn(Result<Response, Error>) + 'static,
|
||||
) {
|
||||
// Toggle socket mode
|
||||
// * guest sessions will not work without!
|
||||
self.socket.set_tls(certificate.is_none());
|
||||
|
||||
match crate::gio::network_address::from_uri(&uri, crate::DEFAULT_PORT) {
|
||||
Ok(network_address) => {
|
||||
self.socket.connect_async(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue