mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
add missed event to update the connection info
This commit is contained in:
parent
4d1fa804ba
commit
62fbeca95d
1 changed files with 10 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue