rpcd-mod-luci: let IPv4 hostnames take precedence over IPv6 ones
authorJo-Philipp Wich <jo@mein.io>
Wed, 22 Sep 2021 07:41:12 +0000 (09:41 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 12 Oct 2021 21:03:41 +0000 (23:03 +0200)
commita9b4f93612581b06a09c5a53da9d50ffe4d00216
tree1cabcba8245d61b0228cdd4cb3ac842cc1a93d3b
parent06419e9a9c778d0ffa824ebb4a76d7551bac8cd1
rpcd-mod-luci: let IPv4 hostnames take precedence over IPv6 ones

Do not overwrite IPv4-resolved hostnames with IPv6 ones in case both are
available or resolvable.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 93bd93e220714276eff95ea51793bb2f826328e8)
libs/rpcd-mod-luci/src/luci.c