Post not yet marked as solved
Post marked as unsolved with 1 replies, 106 views
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()
}