Skip to content

Commit

Permalink
throw an error if userpsace tunnel is used for ios <17.4 (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
aluedeke authored Dec 18, 2024
1 parent ee5dc73 commit 4284fc8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ios/tunnel/tunnel_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,9 @@ func (m manualPairingTunnelStart) StartTunnel(ctx context.Context, device ios.De
return ConnectTunnelLockdown(device)
}
if version.Major() >= 17 {
if userspaceTUN {
return Tunnel{}, errors.New("manualPairingTunnelStart: userspaceTUN not supported for iOS >=17 and < 17.4")
}
return ManualPairAndConnectToTunnel(ctx, device, p)
}
return Tunnel{}, fmt.Errorf("manualPairingTunnelStart: unsupported iOS version %s", version.String())
Expand Down

1 comment on commit 4284fc8

@myungkyojung
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it not possible to use a userspace tunnel on iOS versions below 17.4?

Please sign in to comment.