Skip to content

Commit 7cc64c8

Browse files
authored
fix version comparison (danielpaulus#446)
Fixes a bug that made iOS18 use the old tunnel and fail.
1 parent ca42376 commit 7cc64c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ios/tunnel/tunnel_api.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,8 @@ type manualPairingTunnelStart struct {
360360
}
361361

362362
func (m manualPairingTunnelStart) StartTunnel(ctx context.Context, device ios.DeviceEntry, p PairRecordManager, version *semver.Version, userspaceTUN bool) (Tunnel, error) {
363-
if version.Major() >= 17 && version.Minor() >= 4 {
363+
364+
if version.GreaterThan(semver.MustParse("17.4.0")) {
364365
if userspaceTUN {
365366
tun, err := ConnectUserSpaceTunnelLockdown(device, device.UserspaceTUNPort)
366367
tun.UserspaceTUN = true

0 commit comments

Comments
 (0)