Skip to content

Commit

Permalink
VPN-6842 invalid server fix (#10308)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcleinman authored Mar 5, 2025
1 parent db99abe commit 5d997a6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion docs/Troubleshooting/inspector.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ On desktop, use `ws://localhost:8765`.
3. Note the iOS device's IP address. (Settings app -> Wi-Fi -> ⓘ by network name. See "IP Address" in "IPv4 Address" section)
3. On the desktop computer, go to the [inspector page](
https://mozilla-mobile.github.io/mozilla-vpn-client/inspector/).
On desktop, use `ws://localhost:8765`.
4. On the iOS device, hard quit the Mozilla VPN app (if it is running), and relaunch the app from a cold start. (The actual VPN connection should remain off.)
5. On the Desktop computer, put `ws://[IP addresss]:8765` (example: `ws://192.168.1.131:8765`) in the `Inspector Address` field, click the blue `->` button, and wait for the connection.

Expand Down
2 changes: 1 addition & 1 deletion src/platforms/ios/ioscontroller.swift
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public class IOSControllerImpl: NSObject {
IOSControllerImpl.logger.info(message: "Loading the tunnel succeeded")

do {
if (reason == 1 /* ReasonSwitching */) {
if (reason == 1 /* ReasonSwitching */ && TunnelManager.session?.status == .connected) {
let settings = config.asWgQuickConfig()
let message = TunnelMessage.configurationSwitch(settings)
IOSControllerImpl.logger.info(message: "Sending new message \(message)")
Expand Down
1 change: 1 addition & 0 deletions src/platforms/ios/iostunnel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ class PacketTunnelProvider: NEPacketTunnelProvider, SilentServerSwitching {

case .invalidState:
// Must never happen
self.logger.error(message: "Starting tunnel failed with invalidState")
fatalError()
}
}
Expand Down

0 comments on commit 5d997a6

Please sign in to comment.