This was setting priv->local_addr instead of priv->remote_addr, and so
it always ended up returning NULL.
https://bugzilla.gnome.org/show_bug.cgi?id=645227
addr = g_socket_get_remote_address (priv->gsock, NULL);
sa_len = g_socket_address_get_native_size (addr);
g_socket_address_to_native (addr, &sa, sa_len, NULL);
- priv->local_addr = soup_address_new_from_sockaddr ((struct sockaddr *)&sa, sa_len);
+ priv->remote_addr = soup_address_new_from_sockaddr ((struct sockaddr *)&sa, sa_len);
g_object_unref (addr);
}
g_mutex_unlock (priv->addrlock);