Skip to content

Commit 47a14c5

Browse files
committed
chore: remove debug logging, release 1.5.5
1 parent 0f3543a commit 47a14c5

6 files changed

Lines changed: 11 additions & 42 deletions

File tree

Casks/vpn-bypass.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Or if using local tap: brew install --cask --no-quarantine ./Casks/vpn-bypass.rb
44

55
cask "vpn-bypass" do
6-
version "1.5.4"
6+
version "1.5.5"
77
sha256 "37b127a55aec0bdb80e824e59e840ce5b529c09086aac7fc24dc4616abb817bd"
88

99
url "https://github.com/GeiserX/VPNBypass/releases/download/v#{version}/VPNBypass-#{version}.dmg"

Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.5.4</string>
20+
<string>1.5.5</string>
2121
<key>CFBundleVersion</key>
22-
<string>7</string>
22+
<string>8</string>
2323
<key>LSMinimumSystemVersion</key>
2424
<string>13.0</string>
2525
<key>LSUIElement</key>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<p align="center">
1212
<img src="https://img.shields.io/badge/macOS-13%2B-blue" alt="macOS 13+">
1313
<img src="https://img.shields.io/badge/Swift-5.9-orange" alt="Swift 5.9">
14-
<a href="https://github.com/GeiserX/vpn-macos-bypass/releases"><img src="https://img.shields.io/badge/version-1.5.4-green" alt="Version"></a>
14+
<a href="https://github.com/GeiserX/vpn-macos-bypass/releases"><img src="https://img.shields.io/badge/version-1.5.5-green" alt="Version"></a>
1515
</p>
1616

1717
## Why?

Sources/RouteManager.swift

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,12 +1636,6 @@ final class RouteManager: ObservableObject {
16361636

16371637
/// Nonisolated DNS resolution - runs truly in parallel without MainActor serialization
16381638
private nonisolated static func resolveIPsParallel(for domain: String, userDNS: String?, fallbackDNS: [String]) async -> [String]? {
1639-
// Debug for specific domains
1640-
let debugDomain = domain.contains("lynxprompt") || domain.contains("test.com")
1641-
if debugDomain {
1642-
debugLog("[DNS] \(domain): userDNS=\(userDNS ?? "nil"), fallbackDNS=\(fallbackDNS)")
1643-
}
1644-
16451639
// 1. Try detected non-VPN DNS first (user's original DNS before VPN)
16461640
if let userDNS = userDNS {
16471641
if let ips = await resolveWithDNSParallel(domain, dns: userDNS) {
@@ -1656,30 +1650,9 @@ final class RouteManager: ObservableObject {
16561650
}
16571651
}
16581652

1659-
if debugDomain {
1660-
debugLog("[DNS] \(domain): ALL DNS FAILED")
1661-
}
16621653
return nil
16631654
}
16641655

1665-
/// Debug logging to file (for nonisolated contexts)
1666-
private nonisolated static func debugLog(_ message: String) {
1667-
let timestamp = ISO8601DateFormatter().string(from: Date())
1668-
let line = "[\(timestamp)] \(message)\n"
1669-
let path = "/tmp/vpnbypass-debug.log"
1670-
if let data = line.data(using: .utf8) {
1671-
if FileManager.default.fileExists(atPath: path) {
1672-
if let handle = FileHandle(forWritingAtPath: path) {
1673-
handle.seekToEndOfFile()
1674-
handle.write(data)
1675-
handle.closeFile()
1676-
}
1677-
} else {
1678-
FileManager.default.createFile(atPath: path, contents: data)
1679-
}
1680-
}
1681-
}
1682-
16831656
private nonisolated static func resolveWithDNSParallel(_ domain: String, dns: String) async -> [String]? {
16841657
// Check protocol type
16851658
if dns.hasPrefix("https://") {
@@ -1698,22 +1671,13 @@ final class RouteManager: ObservableObject {
16981671
// Regular DNS via dig - uses async dispatch to GCD for true parallelism
16991672
let args = ["@\(dns)", "+short", "+time=1", "+tries=1", domain]
17001673
guard let result = await runProcessParallel("/usr/bin/dig", arguments: args, timeout: 2.0) else {
1701-
// Debug: log timeout/failure for specific domains
1702-
if domain.contains("lynxprompt") || domain.contains("test.com") {
1703-
debugLog("[DNS] \(domain) @ \(dns): process failed/timeout")
1704-
}
17051674
return nil
17061675
}
17071676

17081677
let ips = result.output.components(separatedBy: "\n")
17091678
.map { $0.trimmingCharacters(in: .whitespaces) }
17101679
.filter { !$0.isEmpty && isValidIPStatic($0) }
17111680

1712-
// Debug: log results for specific domains
1713-
if domain.contains("lynxprompt") || domain.contains("test.com") {
1714-
debugLog("[DNS] \(domain) @ \(dns): output='\(result.output.replacingOccurrences(of: "\n", with: "\\n"))' -> ips=\(ips)")
1715-
}
1716-
17171681
return ips.isEmpty ? nil : ips
17181682
}
17191683

Sources/SettingsView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ struct GeneralTab: View {
12631263
HStack {
12641264
VStack(alignment: .leading, spacing: 2) {
12651265
BrandedAppName(fontSize: 13)
1266-
Text("Version 1.5.4")
1266+
Text("Version 1.5.5")
12671267
.font(.system(size: 11))
12681268
.foregroundColor(Color(hex: "6B7280"))
12691269
}
@@ -1721,7 +1721,7 @@ struct InfoTab: View {
17211721
// App name with branded colors
17221722
BrandedAppName(fontSize: 24)
17231723

1724-
Text("v1.5.4")
1724+
Text("v1.5.5")
17251725
.font(.system(size: 12, design: .monospaced))
17261726
.foregroundColor(Color(hex: "6B7280"))
17271727

docs/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to VPN Bypass will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.5.5] - 2026-01-21
9+
10+
### Fixed
11+
- Removed debug logging code from 1.5.4
12+
813
## [1.5.3] - 2026-01-21
914

1015
### Fixed

0 commit comments

Comments
 (0)