From 62fbeca95dffa689f1fbb619e877e45e45dbc5f6 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 26 Jun 2025 21:02:47 +0300 Subject: [PATCH] add missed event to update the connection info --- src/app/browser/window/tab/item/client/driver/nex.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/app/browser/window/tab/item/client/driver/nex.rs b/src/app/browser/window/tab/item/client/driver/nex.rs index 5230f8bc..dea27524 100644 --- a/src/app/browser/window/tab/item/client/driver/nex.rs +++ b/src/app/browser/window/tab/item/client/driver/nex.rs @@ -98,6 +98,16 @@ impl Nex { let p = self.page.clone(); move |result| match result { Ok(c) => { + { + use gtk::prelude::SocketConnectionExt; + let mut i = p.navigation.request.info.borrow_mut(); + i.set_socket(Some(( + c.local_address().unwrap(), + c.remote_address().unwrap(), + ))); + // * unwrap fails only on `connection.socket_connection.is_closed()` + // panic as unexpected. + } c.output_stream().write_all_async( format!("{}\r\n", uri.path()), Priority::DEFAULT,