remove continuation from BurrowIPC
This removes usage of continuation from BurrowIPC by moving it to NWConnections.
This commit is contained in:
parent
c9f104e523
commit
759311e4f4
2 changed files with 22 additions and 31 deletions
|
|
@ -45,7 +45,7 @@ class PacketTunnelProvider: NEPacketTunnelProvider {
|
|||
return nil
|
||||
}
|
||||
// Using a makeshift remote tunnel address
|
||||
var nst = NEPacketTunnelNetworkSettings(tunnelRemoteAddress: "1.1.1.1")
|
||||
let nst = NEPacketTunnelNetworkSettings(tunnelRemoteAddress: "1.1.1.1")
|
||||
nst.ipv4Settings = NEIPv4Settings(addresses: [addr], subnetMasks: ["255.255.255.0"])
|
||||
logger.log("Initialized ipv4 settings: \(nst.ipv4Settings)")
|
||||
return nst
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue