]> git.ipfire.org Git - thirdparty/strongswan.git/commit
resolve: Avoid dots in protocol part of interface names when using resolvconf
authorTobias Brunner <tobias@strongswan.org>
Wed, 19 Oct 2022 13:55:04 +0000 (15:55 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 19 Dec 2022 15:14:01 +0000 (16:14 +0100)
commitbd6014a97bbeb7d196ed4e428817f258a088b00f
tree2baed6a90584b42cbceeebe4ac719a53ac1edc0f
parentdee1916e4cf3cb3baafc3b01118a56a38b4d936c
resolve: Avoid dots in protocol part of interface names when using resolvconf

Newer releases of systemd contain a change that removes not the part
after the first dot but the part after the last when determining the
interface name (apparently some interface names actually contain a dot).

This changes the default prefix to only contain one dot and avoids the
dots added by IPv4 addresses to create a unique interface/protocol for
each DNS server (it also replaces the `:` in IPv6 addresses with
something that might cause less conflicts).

References strongswan/strongswan#1353
conf/plugins/resolve.opt
src/libcharon/plugins/resolve/resolve_handler.c