mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Read socket state in g_socket_get_local/remote_address
Previously we saved the location in various places which is unnecessary and sometimes even wrong. For instance, we saved the address we bound to which may not have the final port set.
This commit is contained in:
@@ -191,6 +191,7 @@ main (int argc,
|
||||
|
||||
g_print ("got a new connection from %s\n",
|
||||
socket_address_to_string (address));
|
||||
g_object_unref (address);
|
||||
|
||||
recv_socket = new_socket;
|
||||
}
|
||||
|
Reference in New Issue
Block a user