xcode15.3, ios 17.4SDK VPN NEPacketTunnelProvider, After successful socket listen local ip 0.0.0.0, data packets cannot be received in release mode, but can be received in debug mode.This bug has been bothering me for a few days. Please help me. Thank you very much.
In networkExtension code:
... let ip4Set = ...
ip4Set.includedRoutes = [NEIPv4Route.default()]
...
func readDevicePackets(){
...
packetFlow.readPacketObjects { (packetList) in
... let sendPacketList: [NEPacket] = changePacket(packetList)
... packetFlow.writePacketObjects(sendPacketList)
readDevicePackets()
}
Post
Replies
Boosts
Views
Activity
After I upgraded xcode to 15.3 , Then VPN NetworkExtension NEPacketTunnelProvider cannot send TCP packets in release mode, but can send TCP packets in debug mode, please help me!!!