created ER - FB13561111
Post
Replies
Boosts
Views
Activity
NETransparentProxyNetworkSettings settings docs suggest that :
If the port string of remoteNetwork is 0 or the empty string, then the rule matches traffic on any port coming from the remote network. If remoteNetworkis nil, the rule matches any remote network. in my application i'm want to capture all outbound traffic. So calling the constructor with nil
NENetworkRule* rule = [[NENetworkRule alloc]
initWithRemoteNetwork:nil
remotePrefix:0
localNetwork:nil
localPrefix:0
protocol:NENetworkRuleProtocolAny
direction:NETrafficDirectionOutbound
];
i'm getting an error when applying the settings:
Error Domain=NETunnelProviderErrorDomain Code=1 "Missing NETunnelNetworkSettings tunnelRemoteAddress" UserInfo={NSLocalizedDescription=Missing NETunnelNetworkSettings tunnelRemoteAddress what am i doing wrong?