mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-15 20:10:30 +00:00
25 lines
497 B
Swift
25 lines
497 B
Swift
//
|
|
// DeviceConnectionContext.swift
|
|
// StikJIT
|
|
//
|
|
// Created by Stephen.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
enum DeviceConnectionContext {
|
|
static var isUsingExternalDevice: Bool {
|
|
DeviceLibraryStore.shared.isUsingExternalDevice
|
|
}
|
|
|
|
static var requiresLoopbackVPN: Bool {
|
|
false
|
|
}
|
|
|
|
static var targetIPAddress: String {
|
|
if let device = DeviceLibraryStore.shared.activeDevice {
|
|
return device.ipAddress
|
|
}
|
|
return "127.0.0.1"
|
|
}
|
|
}
|