Skip to content

Commit

Permalink
Merge branch 'make-shadowsocks-obfuscation-ready-for-production-ios-879'
Browse files Browse the repository at this point in the history
  • Loading branch information
buggmagnet committed Dec 2, 2024
2 parents fb88bcf + 080e85f commit adc7c4b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
3 changes: 3 additions & 0 deletions ios/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ Line wrap the file at 100 chars. Th
* **Security**: in case of vulnerabilities.

## Unreleased
### Added
- Add WireGuard over Shadowsocks obfuscation. It can be enabled in "VPN settings". This will
also be used automatically when connecting fails with other methods.

## [2024.10 - 2024-11-20]
### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,11 @@ class SelectableSettingsDetailsCell: SelectableSettingsCell {
}

private func setViewContainer() {
#if DEBUG
setTrailingView { superview in
superview.addConstrainedSubviews([viewContainer]) {
viewContainer.pinEdgesToSuperview()
}
}
#endif
}

// MARK: - Actions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,12 @@ final class VPNSettingsCellFactory: CellFactoryProtocol {
comment: ""
)

#if DEBUG
cell.detailTitleLabel.text = String(format: NSLocalizedString(
"WIREGUARD_OBFUSCATION_UDP_TCP_PORT",
tableName: "VPNSettings",
value: "Port: %@",
comment: ""
), viewModel.obfuscationUpdOverTcpPort.description)
#endif

cell.accessibilityIdentifier = item.accessibilityIdentifier
cell.applySubCellStyling()
Expand All @@ -172,14 +170,12 @@ final class VPNSettingsCellFactory: CellFactoryProtocol {
comment: ""
)

#if DEBUG
cell.detailTitleLabel.text = String(format: NSLocalizedString(
"WIREGUARD_OBFUSCATION_SHADOWSOCKS_PORT",
tableName: "VPNSettings",
value: "Port: %@",
comment: ""
), viewModel.obfuscationShadowsocksPort.description)
#endif

cell.accessibilityIdentifier = item.accessibilityIdentifier
cell.applySubCellStyling()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,11 @@ final class VPNSettingsDataSource: UITableViewDiffableDataSource<
static var wireGuardObfuscation: [Item] {
var items: [Item] = [
.wireGuardObfuscationAutomatic,
.wireGuardObfuscationShadowsocks,
.wireGuardObfuscationUdpOverTcp,
.wireGuardObfuscationOff,
]

#if DEBUG
items.insert(.wireGuardObfuscationShadowsocks, at: 1)
#endif

return items
}

Expand Down

0 comments on commit adc7c4b

Please sign in to comment.