Skip to content

Commit

Permalink
Fix custom Wireguard port not being persisted
Browse files Browse the repository at this point in the history
  • Loading branch information
rablador committed Nov 27, 2024
1 parent 9a3874c commit 6c5b309
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,12 @@ struct VPNSettingsViewModel: Equatable {
multihopState = tunnelSettings.tunnelMultihopState
}

/// Produce merged view model keeping entry `identifier` for matching DNS entries.
/// Produce merged view model, keeping entry `identifier` for matching DNS entries and
/// retaining available Wireguard port ranges.
func merged(_ other: VPNSettingsViewModel) -> VPNSettingsViewModel {
var mergedViewModel = other
mergedViewModel.customDNSDomains = merge(customDNSDomains, with: other.customDNSDomains)
mergedViewModel.availableWireGuardPortRanges = availableWireGuardPortRanges

return mergedViewModel
}
Expand Down

0 comments on commit 6c5b309

Please sign in to comment.