Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
buggmagnet committed Nov 26, 2024
1 parent 0dfccf7 commit 93fcbf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/MullvadVPN/TransportMonitor/TransportMonitor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ final class TransportMonitor: RESTTransportProvider {
tunnel.status == .connecting || tunnel.status == .reasserting || tunnel.status == .connected
}

if let tunnel, shouldByPassVPN(tunnel: tunnel) {
if let tunnel, shouldBypassVPN(tunnel: tunnel) {
return PacketTunnelTransport(tunnel: tunnel)
} else {
return transportProvider.makeTransport()
}
}

private func shouldByPassVPN(tunnel: any TunnelProtocol) -> Bool {
private func shouldBypassVPN(tunnel: any TunnelProtocol) -> Bool {
switch tunnel.status {
case .connected:
if case .error = tunnelManager.tunnelStatus.state {
Expand Down

0 comments on commit 93fcbf1

Please sign in to comment.