openresolv-discuss

[PATCH] Add WireGuard interfaces to dynamic_order

nl6720

Mon Dec 02 16:20:13 2019

WireGuard interfaces typically use wg0, wg1, etc.
---
 resolvconf.conf.5.in | 2 +-
 resolvconf.in        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/resolvconf.conf.5.in b/resolvconf.conf.5.in
index 658c98f..eb20508 100644
--- a/resolvconf.conf.5.in
+++ b/resolvconf.conf.5.in
@@ -71,7 +71,7 @@ lo lo[0-9]*
 These interfaces will be processed next, unless they have a metric.
 If unset, defaults to the following:-
 .Bd -compact -literal -offset indent
-tap[0-9]* tun[0-9]* vpn vpn[0-9]* ppp[0-9]* ippp[0-9]*
+tap[0-9]* tun[0-9]* vpn vpn[0-9]* ppp[0-9]* ippp[0-9]* wg[0-9]*
 .Ed
 .It Sy inclusive_interfaces
 Ignore any exclusive marking for these interfaces.
diff --git a/resolvconf.in b/resolvconf.in
index e7d3821..bcf2dc5 100644
--- a/resolvconf.in
+++ b/resolvconf.in
@@ -44,7 +44,7 @@ unset interface_order state_dir
 # If you change this, change the test in VFLAG and libc.in as well
 local_nameservers="127.* 0.0.0.0 255.255.255.255 ::1"
 
-dynamic_order="tap[0-9]* tun[0-9]* vpn vpn[0-9]* ppp[0-9]* ippp[0-9]*"
+dynamic_order="tap[0-9]* tun[0-9]* vpn vpn[0-9]* ppp[0-9]* ippp[0-9]* wg[0-9]*"
 interface_order="lo lo[0-9]*"
 name_server_blacklist="0.0.0.0"
 
-- 
2.24.0


Archive administrator: postmaster@marples.name