Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajhilje committed Feb 19, 2025
2 parents 2e1b8e8 + bbcd25e commit f809a45
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file.

## 2.12.5 - 2025-02-19

[FIXED] Potential DNS leak during automatic WireGuard key rotation

## 2.12.4 - 2024-09-17

[NEW] Option to show/hide Account ID
Expand Down
12 changes: 6 additions & 6 deletions IVPNClient.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2830,7 +2830,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = IVPNClient/IVPNClient.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
CURRENT_PROJECT_VERSION = 9;
CURRENT_PROJECT_VERSION = 5;
DEVELOPMENT_TEAM = WQXXM75BYN;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -2848,7 +2848,7 @@
"$(inherited)",
"$(PROJECT_DIR)/IVPNClient/liboqs",
);
MARKETING_VERSION = 2.12.4;
MARKETING_VERSION = 2.12.5;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = "$(inherited)";
OTHER_SWIFT_FLAGS = "-D DEBUG";
Expand Down Expand Up @@ -3319,7 +3319,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = IVPNClient/IVPNClient.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
CURRENT_PROJECT_VERSION = 9;
CURRENT_PROJECT_VERSION = 5;
DEVELOPMENT_TEAM = WQXXM75BYN;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -3337,7 +3337,7 @@
"$(inherited)",
"$(PROJECT_DIR)/IVPNClient/liboqs",
);
MARKETING_VERSION = 2.12.4;
MARKETING_VERSION = 2.12.5;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = "$(inherited)";
OTHER_SWIFT_FLAGS = "-D DEBUG";
Expand All @@ -3358,7 +3358,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = IVPNClient/IVPNClient.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
CURRENT_PROJECT_VERSION = 9;
CURRENT_PROJECT_VERSION = 5;
DEVELOPMENT_TEAM = WQXXM75BYN;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -3376,7 +3376,7 @@
"$(inherited)",
"$(PROJECT_DIR)/IVPNClient/liboqs",
);
MARKETING_VERSION = 2.12.4;
MARKETING_VERSION = 2.12.5;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = "$(inherited)";
OTHER_SWIFT_FLAGS = "-D RELEASE";
Expand Down
2 changes: 1 addition & 1 deletion IVPNClient/Config/servers.json

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions wireguard-tunnel-provider/PacketTunnelProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ class PacketTunnelProvider: NEPacketTunnelProvider {

private func regenerateKeys(completion: @escaping (Error?) -> Void) {
wg_log(.info, message: "Rotating keys")

reasserting = true

AppKeyManager.shared.setNewKey { privateKey, ipAddress, presharedKey in
guard let privateKey = privateKey, let ipAddress = ipAddress else {
completion(nil)
Expand Down Expand Up @@ -190,6 +193,8 @@ class PacketTunnelProvider: NEPacketTunnelProvider {
self.updateWgConfig(key: "preshared_key", value: hexPresharedKey)
}

self.reasserting = false

completion(nil)
}
}
Expand Down

0 comments on commit f809a45

Please sign in to comment.