Skip to content

Always resolve localhost to loopback address

Patrick Griffis requested to merge wip/tingping/localhost-is-local into master

This implements this draft rfc[1] which recommends clients always resolve "localhost" to a loopback address which has security benefits such as preventing a malicious dns server to redirect local connections.

This also kinda makes g_network_address_new_loopback() a redundant API but thats fine.

[1] https://tools.ietf.org/html/draft-west-let-localhost-be-localhost-06

cc @mcatanzaro

Edited by Patrick Griffis

Merge request reports