Commit Graph

317 Commits

Author SHA1 Message Date
Davide De Rosa 6329c32903 Reuse shared cell values globally 2019-05-01 22:59:05 +02:00
Davide De Rosa e6d67ac9f6 Take no risks with unwrapped optionals 2019-04-28 21:50:18 +02:00
Davide De Rosa b714f8acd9 Log cached infra JSON when unable to parse 2019-04-28 21:34:12 +02:00
Davide De Rosa 125c6a7d67 Fix encoding of external map in preset
The effect of this is that refreshed infrastructures were not
remembered.
2019-04-28 21:34:12 +02:00
Davide De Rosa 02c02690fd Add ru translations 2019-04-28 17:36:05 +02:00
Davide De Rosa ffb273ce23 Create GitHub section in About
Leave README and CHANGELOG untranslated.
2019-04-27 09:23:03 +02:00
Davide De Rosa b1cde74798 Refactor renamed strings 2019-04-26 18:28:01 +02:00
Davide De Rosa 1979e8b700 Capitalize languages 2019-04-26 16:08:23 +02:00
Davide De Rosa ebddbe9f4b Fix language sorting
Sorted by country, rendered by language.
2019-04-26 16:06:51 +02:00
Davide De Rosa 4afbe4aa4e Fix condition for external hostname in endpoints 2019-04-26 15:29:50 +02:00
Davide De Rosa 15e1cc1d48 Update providers metadata 2019-04-26 14:25:06 +02:00
Davide De Rosa d430e7c268 Add VyprVPN provider 2019-04-26 14:05:05 +02:00
Davide De Rosa 027bf82208 Store category groups as a list
Map complexity is of no use.

Update JSON (stub).
2019-04-26 13:48:26 +02:00
Davide De Rosa b61906c32f Handle Pool.resolved to use external hostname 2019-04-26 10:15:24 +02:00
Davide De Rosa 94a717befa Fix Pool.localizedId 2019-04-25 23:56:25 +02:00
Davide De Rosa baf1996f58 Upgrade web services version 2019-04-25 23:20:07 +02:00
Davide De Rosa bd29b6d6f0 Split external configuration read and injection
For reuse in Pool.addresses
2019-04-25 22:25:54 +02:00
Davide De Rosa 547c669e81 Inject external provider pool hostname 2019-04-25 22:25:54 +02:00
Davide De Rosa 990a0f033a Append tags to Pool.secondaryId 2019-04-25 21:30:43 +02:00
Davide De Rosa a12cecb647 Fix Pool.secondaryId and use it for sorting
Account for extraCountries.
2019-04-25 21:30:43 +02:00
Davide De Rosa d9a0ebd923 Upgrade API to v2 (entities) 2019-04-25 21:30:43 +02:00
Davide De Rosa 2d40213625 Drop old Pool.name 2019-04-25 18:32:29 +02:00
Davide De Rosa 04c2191e83 Migrate profiles routing policies
- Providers: enforce all (IPv4 + IPv6)
- Hosts: re-read .ovpn on app update, fall back to all (safer)

Reload hosts in order to re-interpret "redirect-gateway".
2019-04-25 15:40:40 +02:00
Davide De Rosa b3a509fbea Show default gateway policy in configuration UI 2019-04-25 15:30:23 +02:00
Davide De Rosa 458ef496fd Unlocalize some strings 2019-04-23 15:47:24 +02:00
Davide De Rosa ea5992f6ee Update translations metadata 2019-04-23 15:47:24 +02:00
Davide De Rosa 3b1b34f15c Detect missing VPN routing info 2019-04-19 09:55:26 +02:00
Davide De Rosa a6745ceec7 Move feedback section to main screen 2019-04-15 14:40:16 +02:00
Davide De Rosa 1d47650a16 Refine referrals 2019-04-15 13:44:07 +02:00
Davide De Rosa a92a2a65c2 Update NordVPN link 2019-04-15 13:30:45 +02:00
Davide De Rosa fd9a165817 Use Locale for country names too
I hadn't thought it before!
2019-04-13 18:55:45 +02:00
Davide De Rosa b65db8d42f Use translation language, not country 2019-04-13 18:51:54 +02:00
Davide De Rosa b6d7655b6d Add translations to Credits 2019-04-13 18:45:33 +02:00
Davide De Rosa 6aa3ec2e76 Show proxy servers in configuration 2019-04-13 09:30:53 +02:00
Davide De Rosa ddb0c38860 Add comments about the need of cache LRU 2019-04-11 23:38:16 +02:00
Davide De Rosa cf8f0984a3 Cache pool models, do not rebuild each time
Invalidate on new infrastructure.
2019-04-11 23:38:16 +02:00
Davide De Rosa 269143c369 Update CHANGELOG and the like 2019-04-11 23:35:29 +02:00
Davide De Rosa 8a81ad8f72 Update NordVPN infrastructure
- Pick default pool by country e.g. "us" rather than "us-123"
- Drop overwhelming resolved addresses

Required changes:

- Assume default pool id to be a prefix
- Make Pool addresses optional
2019-04-11 21:14:56 +02:00
Davide De Rosa e0c8b478bb Unzip NordVPN external resources to cache 2019-04-11 19:11:08 +02:00
Davide De Rosa 2088795a9c Add NordPVN provider 2019-04-11 19:11:03 +02:00
Davide De Rosa 8203bc99f8 Import downloaded resources into provider cache
Show message in HUD while extracting files
2019-04-11 19:01:59 +02:00
Davide De Rosa 2f09a41d06 Stop to download additional provider resources 2019-04-11 19:01:55 +02:00
Davide De Rosa 0507b8324a Prepare infrastructures to import an external URL 2019-04-11 18:09:03 +02:00
Davide De Rosa 922a715bfd Inject external resources into configuration 2019-04-11 18:05:53 +02:00
Davide De Rosa 8373fc3975 Signal externally loaded preset resources
Via "external" array. The following fields can be external:

- CA
- Client certificate/key
- TLS key

Make CA therefore optional in preset.
2019-04-11 18:05:53 +02:00
Davide De Rosa b4c6bfb8de Fix Xcode warnings and deprecations 2019-04-11 16:56:38 +02:00
Davide De Rosa 4add7a695c Migrate to Swift 5
Last time was probably incomplete.
2019-04-11 16:51:12 +02:00
Davide De Rosa 489229b1eb Fix nil pool for renamed/removed ids
Would crash on connect otherwise.
2019-04-10 16:28:13 +02:00
Davide De Rosa 89d259e27d Sort Pool only when listed as Options
Normally it's PoolGroup who needs sorting.
2019-04-10 15:31:14 +02:00
Davide De Rosa 12597d34b3 Override hostname with profile value
Now that TunnelKit uses sessionConfiguration.hostname to set
.serverAddress, it must be set no matter what.

If hostname is nil, serverAddress is set to
resolvedAddresses.first, which for host profiles is always nil.

Also reorder provider code.
2019-04-10 15:13:31 +02:00