Revision 236f8ecc
Added by Jim Pingle over 4 years ago
src/etc/inc/gwlb.inc | ||
---|---|---|
832 | 832 |
continue 2; |
833 | 833 |
} |
834 | 834 |
} |
835 |
} elseif (substr($ifcfg['if'], 0, 2) == "wg") { |
|
836 |
if (!find_interface_ip($ifcfg['if'])) { |
|
837 |
continue 2; |
|
838 |
} |
|
839 |
$ctype = "WGv4"; |
|
835 | 840 |
} elseif ($tunnelif == "gif" || $tunnelif == "gre") { |
836 | 841 |
$ctype = "TUNNELv4"; |
837 | 842 |
} |
... | ... | |
975 | 980 |
continue 2; |
976 | 981 |
} |
977 | 982 |
} |
983 |
} elseif (substr($ifcfg['if'], 0, 2) == "wg") { |
|
984 |
if (!find_interface_ipv6($ifcfg['if'])) { |
|
985 |
continue 2; |
|
986 |
} |
|
987 |
$ctype = "WGv6"; |
|
978 | 988 |
} else if ($tunnelif == "gif" || $tunnelif == "gre") { |
979 | 989 |
$ctype = "TUNNELv6"; |
980 | 990 |
} |
Also available in: Unified diff
Automatic WireGuard interface gateways. Part of NG 5437