From 291988a63b9a201ff1387c5d276c2718e4ce5071 Mon Sep 17 00:00:00 2001
From: "Jason A. Donenfeld" <zx2c4@gentoo.org>
Date: Sat, 28 Dec 2019 08:54:38 +0100
Subject: [PATCH] net-vpn/wireguard-tools: check for IPV6_MULTIPLE_TABLES

Closes: https://bugs.gentoo.org/671898
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>
---
 net-vpn/wireguard-tools/wireguard-tools-1.0.20191226.ebuild | 1 +
 net-vpn/wireguard-tools/wireguard-tools-9999.ebuild         | 1 +
 2 files changed, 2 insertions(+)

diff --git a/net-vpn/wireguard-tools/wireguard-tools-1.0.20191226.ebuild b/net-vpn/wireguard-tools/wireguard-tools-1.0.20191226.ebuild
index 4291be2ecbf6..5c75ad1f60b7 100644
--- a/net-vpn/wireguard-tools/wireguard-tools-1.0.20191226.ebuild
+++ b/net-vpn/wireguard-tools/wireguard-tools-1.0.20191226.ebuild
@@ -35,6 +35,7 @@ wg_quick_optional_config_nob() {
 pkg_setup() {
 	wg_quick_optional_config_nob IP_ADVANCED_ROUTER
 	wg_quick_optional_config_nob IP_MULTIPLE_TABLES
+	wg_quick_optional_config_nob IPV6_MULTIPLE_TABLES
 	if has_version net-firewall/nftables; then
 		wg_quick_optional_config_nob NF_TABLES
 		wg_quick_optional_config_nob NF_TABLES_IPV4
diff --git a/net-vpn/wireguard-tools/wireguard-tools-9999.ebuild b/net-vpn/wireguard-tools/wireguard-tools-9999.ebuild
index 4291be2ecbf6..5c75ad1f60b7 100644
--- a/net-vpn/wireguard-tools/wireguard-tools-9999.ebuild
+++ b/net-vpn/wireguard-tools/wireguard-tools-9999.ebuild
@@ -35,6 +35,7 @@ wg_quick_optional_config_nob() {
 pkg_setup() {
 	wg_quick_optional_config_nob IP_ADVANCED_ROUTER
 	wg_quick_optional_config_nob IP_MULTIPLE_TABLES
+	wg_quick_optional_config_nob IPV6_MULTIPLE_TABLES
 	if has_version net-firewall/nftables; then
 		wg_quick_optional_config_nob NF_TABLES
 		wg_quick_optional_config_nob NF_TABLES_IPV4
-- 
2.26.2