Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
liberty
tunnel
liberty-tunnel-client-library-apple
Commits
dc8b07b4
Commit
dc8b07b4
authored
Jan 24, 2019
by
Jose Blaya
Browse files
Retrieve VPN IP from IKEv2 interface
parent
12d82ba8
Changes
1
Hide whitespace changes
Inline
Side-by-side
PIALibrary/Sources/Util/iOS/CMacros.m
View file @
dc8b07b4
...
...
@@ -35,7 +35,7 @@ NSString *VPNIPAddressFromInterfaces()
// NSLog(@"Interfaces: %@ = %@", ifName, ifIpAddress);
if
([
ifName
hasPrefix
:
@"utun"
]
||
[
ifName
hasPrefix
:
@"ppp"
])
{
if
([
ifName
hasPrefix
:
@"utun"
]
||
[
ifName
hasPrefix
:
@"ppp"
]
||
[
ifName
hasPrefix
:
@"ipsec0"
]
)
{
vpnIpAddress
=
ifIpAddress
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment