Commit fab4d04c authored by Jose Blaya's avatar Jose Blaya

Merge branch '304-fix-issue-with-hotspothelper-and-captive-portals' into 'release/3.0.1'

Resolve "Fix issue with HotspotHelper and Captive Portals"

See merge request ios/vpn-ios!414
parents 963df4a2 ec315636
......@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>3.0.0</string>
<string>3.0.1</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>NSExtension</key>
......
......@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>3.0.0</string>
<string>3.0.1</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>NSExtension</key>
......
......@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>3.0.0</string>
<string>3.0.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSpokenName</key>
......
......@@ -77,7 +77,36 @@ class PIAHotspotHelper {
log.info("present PIA message for unprotected networks")
}
response.deliver()
} else if cmd.commandType == NEHotspotHelperCommandType.evaluate {
if let network = cmd.network {
log.info("HotspotHelper Evaluating: "+network.ssid)
network.setConfidence(NEHotspotHelperConfidence.high)
let response = cmd.createResponse(NEHotspotHelperResult.success)
response.setNetwork(network)
response.deliver()
}
} else if cmd.commandType == NEHotspotHelperCommandType.authenticate{
if let network = cmd.network {
log.info("HotspotHelper: Authenticating the network: "+network.ssid)
network.setConfidence(.high)
let response = cmd.createResponse(NEHotspotHelperResult.success)
response.setNetwork(network)
response.deliver()
}
} else if cmd.commandType == NEHotspotHelperCommandType.presentUI{
if let network = cmd.network {
log.info("HotspotHelper: presentUI for network: "+network.ssid)
network.setConfidence(.high)
let response = cmd.createResponse(NEHotspotHelperResult.success)
response.setNetwork(network)
response.deliver()
}
} else if cmd.commandType == NEHotspotHelperCommandType.maintain{
if let network = cmd.network {
log.info("HotspotHelper:maintain network: "+network.ssid)
}
}
}
......
......@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>3.0.0</string>
<string>3.0.1</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
......
......@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>3.0.0</string>
<string>3.0.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
......
......@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>3.0.0</string>
<string>3.0.1</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>NSExtension</key>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment