diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2022-10-21 13:51:29 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2022-10-21 15:41:09 +0200 |
| commit | 2dad53758339452115944349e48777c155bba8d3 (patch) | |
| tree | 9befb0255097ce10b929a3da42f4c2b50ad8059c /ios/RelaySelector/RelaySelector.swift | |
| parent | e72d0d0ead3a872dfca8fb1e239b11651299685d (diff) | |
| download | mullvadvpn-2dad53758339452115944349e48777c155bba8d3.tar.xz mullvadvpn-2dad53758339452115944349e48777c155bba8d3.zip | |
Move PacketTunnelRelay and PacketTunnelStatus to MullvadTypes
Diffstat (limited to 'ios/RelaySelector/RelaySelector.swift')
| -rw-r--r-- | ios/RelaySelector/RelaySelector.swift | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ios/RelaySelector/RelaySelector.swift b/ios/RelaySelector/RelaySelector.swift index bc88795b7d..9c3472cf74 100644 --- a/ios/RelaySelector/RelaySelector.swift +++ b/ios/RelaySelector/RelaySelector.swift @@ -171,6 +171,15 @@ public struct RelaySelectorResult: Codable { public var endpoint: MullvadEndpoint public var relay: REST.ServerRelay public var location: Location + + public var packetTunnelRelay: PacketTunnelRelay { + return PacketTunnelRelay( + ipv4Relay: endpoint.ipv4Relay, + ipv6Relay: endpoint.ipv6Relay, + hostname: relay.hostname, + location: location + ) + } } private struct RelayWithLocation { |
