Skip to content

Allow dynamic IP configuration for NEPacketTunnelNetworkSettings instead of hardcoded values #8

Description

@Kerim-hash

Currently, in PacketTunnelProvider.m the IP configuration is hardcoded:

`NEPacketTunnelNetworkSettings *networkSettings =
[[NEPacketTunnelNetworkSettings alloc]
initWithTunnelRemoteAddress:@"10.0.0.3"];

// IP address configuration
networkSettings.IPv4Settings = [[NEIPv4Settings alloc]
initWithAddresses:@[@"10.0.0.2"] subnetMasks:@[@"255.255.255.0"]];
`

Here, the remote address (10.0.0.3) and local address (10.0.0.2) are fixed values.
This makes the tunnel less flexible, since it cannot adapt to different server configurations.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions