From 635700c1958ef91bc670c624d3b693c2946d0a50 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Sat, 5 Oct 2024 10:06:51 +0200 Subject: [PATCH] Revisit OpenVPN view - Move pull section below - Add IPv6 to preview --- .../Library/Sources/AppUI/Views/Modules/OpenVPNView.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Passepartout/Library/Sources/AppUI/Views/Modules/OpenVPNView.swift b/Passepartout/Library/Sources/AppUI/Views/Modules/OpenVPNView.swift index 5e5a34bd..2ee34cdb 100644 --- a/Passepartout/Library/Sources/AppUI/Views/Modules/OpenVPNView.swift +++ b/Passepartout/Library/Sources/AppUI/Views/Modules/OpenVPNView.swift @@ -72,11 +72,11 @@ struct OpenVPNView: View { var body: some View { Group { + moduleSection(for: accountRows, header: Strings.Global.account) + moduleSection(for: remotesRows, header: Strings.Modules.Openvpn.remotes) if !isServerPushed { moduleSection(for: pullRows, header: Strings.Modules.Openvpn.pull) } - moduleSection(for: accountRows, header: Strings.Global.account) - moduleSection(for: remotesRows, header: Strings.Modules.Openvpn.remotes) moduleSection(for: redirectRows, header: Strings.Modules.Openvpn.redirectGateway) moduleSection( for: ipRows(for: configuration.ipv4, routes: configuration.routes4), @@ -335,7 +335,8 @@ private extension OpenVPNView { builder.remotes = [ .init(rawValue: "2.2.2.2:UDP:2222")!, .init(rawValue: "6.6.6.6:UDP:6666")!, - .init(rawValue: "12.12.12.12:TCP:21212")! + .init(rawValue: "12.12.12.12:TCP:21212")!, + .init(rawValue: "12:12:12:12:20:20:20:20:TCP6:21212")! ] builder.ipv4 = IPSettings(subnet: try! .init("5.5.5.5", 24)) .including(routes: [