mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-04-06 00:00:03 +08:00
Declare custom packet flow class
This commit is contained in:
20
OpenVPN Adapter Tests/CustomFlow.swift
Normal file
20
OpenVPN Adapter Tests/CustomFlow.swift
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// CustomFlow.swift
|
||||
// OpenVPN Adapter
|
||||
//
|
||||
// Created by Sergey Abramchuk on 28.10.2017.
|
||||
//
|
||||
|
||||
import NetworkExtension
|
||||
|
||||
class CustomFlow: NEPacketTunnelFlow {
|
||||
|
||||
override func readPacketObjects(completionHandler: @escaping ([NEPacket]) -> Void) {
|
||||
super.readPacketObjects(completionHandler: completionHandler)
|
||||
}
|
||||
|
||||
override func writePacketObjects(_ packets: [NEPacket]) -> Bool {
|
||||
return super.writePacketObjects(packets)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user