The following patch updates wireguard-tools as described in the subject. The current port is broken as of OpenBSD 7.0 in the case where the peer advertizes a nameserver. The newer release properly uses the route(8) command to add the nameserver to resolv.conf.
Index: wireguard-tools/Makefile =================================================================== RCS file: /cvs/ports/net/wireguard-tools/Makefile,v retrieving revision 1.21 diff -u -r1.21 Makefile --- wireguard-tools/Makefile 3 May 2021 11:16:29 -0000 1.21 +++ wireguard-tools/Makefile 20 Nov 2021 16:44:51 -0000 @@ -2,7 +2,7 @@ COMMENT = fast and secure VPN -DISTNAME = wireguard-tools-1.0.20210424 +DISTNAME = wireguard-tools-1.0.20210914 EPOCH = 0 CATEGORIES = net security Index: wireguard-tools/distinfo =================================================================== RCS file: /cvs/ports/net/wireguard-tools/distinfo,v retrieving revision 1.17 diff -u -r1.17 distinfo --- wireguard-tools/distinfo 3 May 2021 11:16:29 -0000 1.17 +++ wireguard-tools/distinfo 20 Nov 2021 16:44:51 -0000 @@ -1,2 +1,2 @@ -SHA256 (wireguard-tools-1.0.20210424.tar.xz) = soiwxDhx2RlinX53hG7wtH+O6qnryc7e7oIz/GzDdq0= -SIZE (wireguard-tools-1.0.20210424.tar.xz) = 96816 +SHA256 (wireguard-tools-1.0.20210914.tar.xz) = l/8xSJIXuyZbeuhQ09DzNasH0mUrof7siLc0vJa9Baw= +SIZE (wireguard-tools-1.0.20210914.tar.xz) = 99744 -- Daniel Moch