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-ios
Commits
cdd9006a
Commit
cdd9006a
authored
Aug 28, 2018
by
Jose Blaya
Browse files
Reset the socket in AppPreferences before update the socket object in the SettingsViewController
parent
d86385ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
PIA VPN/SettingsViewController.swift
View file @
cdd9006a
...
...
@@ -322,11 +322,10 @@ class SettingsViewController: AutolayoutViewController {
guard
let
currentOpenVPNConfiguration
=
pendingPreferences
.
vpnCustomConfiguration
(
for
:
PIATunnelProfile
.
vpnType
)
as?
PIATunnelProvider
.
Configuration
else
{
fatalError
(
"No default VPN custom configuration provided for PIA protocol"
)
}
AppPreferences
.
shared
.
reset
()
pendingOpenVPNSocketType
=
AppPreferences
.
shared
.
piaSocketType
pendingOpenVPNConfiguration
=
currentOpenVPNConfiguration
.
builder
()
AppPreferences
.
shared
.
reset
()
redisplaySettings
()
reportUpdatedPreferences
()
}
...
...
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