Skip to content

Commit

Permalink
Remvoed assignement check, it was failing to pickup tunnels with sepe…
Browse files Browse the repository at this point in the history
…rate addresses, not interface assigned
  • Loading branch information
GenericStudent committed Sep 28, 2021
1 parent 30cde2f commit e885b64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
$user_wants_suggestion = isset($wgg['config']['suggest_next_approved_ip']) && $wgg['config']['suggest_next_approved_ip'] == 'yes';

// Suggest the next available IP address (if applicable)
if ($user_wants_suggestion && !empty($pconfig['tun']) && is_wg_tunnel_assigned($pconfig['tun'])) {
if ($user_wants_suggestion && !empty($pconfig['tun']) && $pconfig['tun'] != 'unassigned') {
$suggested_next_ips = wg_get_tunnel_next_allowed_ip($pconfig['tun']);

if (!empty($suggested_next_ips)) {
Expand Down

0 comments on commit e885b64

Please sign in to comment.