Commit Graph

  • f4b464a7cf Chore(deps): Bump github.com/stretchr/testify from 1.7.1 to 1.7.2 (#1016) dependabot[bot] 2022-06-12 08:31:53 -07:00
  • 76690d3add Chore(deps): Bump crazy-max/ghaction-github-labeler from 3 to 4 (#1007) dependabot[bot] 2022-06-12 07:07:25 -07:00
  • 9898387579 feat(updater): Configurable min ratio - UPDATER_MIN_RATIO variable - -minratio flag for CLI operation Quentin McGaw 2022-06-12 14:03:00 +00:00
  • 1ea15a1a13 chore(protonvpn): document to remove SERVER_NAMES Quentin McGaw 2022-06-12 01:58:46 +00:00
  • bda6707685 chore(all): remove unexported interfaces Quentin McGaw 2022-06-12 00:57:37 +00:00
  • 89277828ac chore(publicip): internal/publicip/ipinfo package Quentin McGaw 2022-06-12 00:53:39 +00:00
  • 83b4a3fe55 chore(publicip): refactoring - Exported Fetcher interface - Inject Fetcher to publicip loop and updaters - Get public IP and information at the same time - Only query ipinfo.io - Make MultiInfo part of the Fetch object Quentin McGaw 2022-06-12 00:09:01 +00:00
  • 45c9e780c0 chore(updater): rename presolver to parallelResolver Quentin McGaw 2022-06-11 20:12:35 +00:00
  • 33b8f5f596 chore(settings): updater DNS address as string Quentin McGaw 2022-06-11 20:11:20 +00:00
  • 447a7c9891 updater: refactoring and set DNS server correctly - Fix CLI operation not setting DNS server - Fix periodic operation not setting DNS server - Set DNS address for resolution once at start for both CLI and periodic operation - Inject resolver to each provider instead of creating it within - Use resolver settings on every call to .Resolve method, instead of passing it to constructor - Move out minServers check from resolver Quentin McGaw 2022-06-11 17:41:57 +00:00
  • 1bd355ab96 chore(lint): add ireturn linter Quentin McGaw 2022-06-11 01:34:45 +00:00
  • 578ef768ab chore(all): return concrete types, accept interfaces - Remove exported interfaces unused locally - Define interfaces to accept arguments - Return concrete types, not interfaces Quentin McGaw 2022-06-11 01:34:30 +00:00
  • 0378fe4a7b chore(all): Providers containing all provider objects - Share the same providers for updater and vpn - Initialise all providers at start - Get from Providers instead of constructing on every run Quentin McGaw 2022-06-10 00:47:56 +00:00
  • ebd94723c1 chore(updater): incorporate FetchServers method in Provider interface - Each provider interface can now fetch updated servers data - Rename each provider updater subpackage name to updater - Updater constructor does not take a settings struct - Updater update method takes in a slice of provider strings Quentin McGaw 2022-06-09 23:47:12 +00:00
  • 11b55abff3 fix(protonvpn): remove duplicate entry IPs Quentin McGaw 2022-06-09 22:11:40 +00:00
  • 7f32b43895 fix(pia): load custom PIA certificate for API Quentin McGaw 2022-06-09 17:11:08 +00:00
  • 899f10c35e chore(resolver): export structs instead of interfaces Quentin McGaw 2022-06-09 03:10:56 +00:00
  • 415cb7a945 chore(updater): create resolver in provider updater - Pass min servers to resolve call - Set settings when constructing resolver - Construct resolver in each provider updater - No more common resolver for all providers Quentin McGaw 2022-06-09 02:54:39 +00:00
  • e37f557cd5 chore(provider): add Name() method per provider Quentin McGaw 2022-06-07 16:58:08 +00:00
  • 79f213d97a chore(updater): rename GetServers to FetchServers Quentin McGaw 2022-06-07 16:47:35 +00:00
  • 11e1c9f9bb feat(protonvpn): update hardcoded servers data Quentin McGaw 2022-06-09 16:41:04 +00:00
  • 3ff3816d77 fix(pia): restrict custom port choice Quentin McGaw 2022-06-09 16:36:59 +00:00
  • c0bdae8baf fix(protonvpn): restrict custom port choice Quentin McGaw 2022-06-09 16:36:17 +00:00
  • 46e6bd16c9 fix(pia): remove duplicate log of pf data expiration Quentin McGaw 2022-06-09 16:34:28 +00:00
  • 5359257c65 hotfix(pia): port forwarding to use server name Quentin McGaw 2022-06-06 18:09:21 +00:00
  • 5e659dc5b3 feat(storage): add keep field for servers Quentin McGaw 2022-06-06 03:04:58 +00:00
  • 85e9d7d522 docs(maintenance): update document Quentin McGaw 2022-06-06 02:58:58 +00:00
  • b71c8e58f4 fix(vpn): do not close wait error channel on consumer side Quentin McGaw 2022-06-06 02:56:40 +00:00
  • e998372ce2 feat(ipvanish): update servers data and remove duplicates Quentin McGaw 2022-06-06 02:11:09 +00:00
  • 1216326867 chore(storage): common sorting for all servers Quentin McGaw 2022-06-06 01:57:44 +00:00
  • f53f0cfffd feat(surfshark): update servers data Quentin McGaw 2022-06-06 01:41:00 +00:00
  • f5f65d534a fix(ci): publish job trigger fixed Quentin McGaw 2022-06-05 16:01:40 +00:00
  • 684cef6eab hotfix(openvpn): openvpn udp specific lines added Quentin McGaw 2022-06-05 15:48:14 +00:00
  • b4f6ae030d hotfix(purevpn): add missing key-direction 1 Quentin McGaw 2022-06-05 15:44:33 +00:00
  • e95c94294f feat(pia): update servers data Quentin McGaw 2022-06-05 15:20:03 +00:00
  • 36b504609b chore(all): memory and thread safe storage - settings: get filter choices from storage for settings validation - updater: update servers to the storage - storage: minimal deep copying and data duplication - storage: add merged servers mutex for thread safety - connection: filter servers in storage - formatter: format servers to Markdown in storage - PIA: get server by name from storage directly - Updater: get servers count from storage directly - Updater: equality check done in storage, fix #882 Quentin McGaw 2022-06-05 14:58:46 +00:00
  • 1e6b4ed5eb chore(provider): rename test functions to Test_Provider_GetConnection Quentin McGaw 2022-06-05 02:34:10 +00:00
  • 0549326dfb chore(updater): tiny code changes - Remove unneeded ctx error check in cyberghost updating code - Move global scope caser to function local scope - Return error if updating a single provider in UpdateServers - Add comments on different error paths in UpdateServers Quentin McGaw 2022-06-03 13:01:29 +00:00
  • 87c6ebe1c5 feat(purevpn): update servers data Quentin McGaw 2022-05-31 14:17:33 +00:00
  • f0afac243b feat(privatevpn): update servers data Quentin McGaw 2022-05-31 14:16:41 +00:00
  • 53472077f4 Chore(deps): Bump docker/setup-buildx-action from 1 to 2 (#977) dependabot[bot] 2022-05-29 11:31:09 -07:00
  • 55afdf33e1 Chore(deps): Bump docker/setup-qemu-action from 1 to 2 (#978) dependabot[bot] 2022-05-29 11:28:05 -07:00
  • d3c1f9263c Chore(deps): Bump docker/build-push-action from 2.10.0 to 3.0.0 (#979) dependabot[bot] 2022-05-29 11:27:55 -07:00
  • 6341d1dda6 Chore(deps): Bump docker/metadata-action from 3 to 4 (#980) dependabot[bot] 2022-05-29 11:27:44 -07:00
  • e62e1883c2 Chore(deps): Bump docker/login-action from 1 to 2 (#981) dependabot[bot] 2022-05-29 11:27:33 -07:00
  • 501b98dbd3 chore(ci): skip workflow for required verify job Quentin McGaw 2022-05-29 17:33:35 +00:00
  • 029fd1da1f feat(docker): upgrade Alpine from 3.15 to 3.16 (#1005) Derzsi Dániel 2022-05-29 20:30:10 +03:00
  • fd0267efef chore(ci): merge codeql job in CI workflow Quentin McGaw 2022-05-29 17:14:42 +00:00
  • 4414366370 chore(ci): restrict permissions to read actions+contents Quentin McGaw 2022-05-29 17:11:26 +00:00
  • 08553bc90b chore(ci): only publish image for qdm12/gluetun Quentin McGaw 2022-05-29 17:11:05 +00:00
  • 6f850c4ad4 chore(ci): merge dependabot and fork workflows in ci workflow Quentin McGaw 2022-05-29 17:00:15 +00:00
  • 8e1316bd8a chore(storage): minor refactoring - Unexport SyncServers - Re-generate mock file - Remove single use function Quentin McGaw 2022-05-28 22:51:19 +00:00
  • b345368257 hotfix(storage): JSON provider versioning safety Quentin McGaw 2022-05-28 22:43:54 +00:00
  • 90dd3b1b5c chore(storage): only pass hardcoded versions to read file Quentin McGaw 2022-05-28 22:36:16 +00:00
  • 22455ac76f chore(updater): shared not enough servers error Quentin McGaw 2022-05-28 22:02:18 +00:00
  • eb18eaf0a9 fix(wireguard): continue on ipv6 route add permission denial Quentin McGaw 2022-05-28 21:06:21 +00:00
  • 90c6c8485b chore(updater): common GetServers signature - Log warnings when running outside of CLI mode - Remove updater CLI bool setting - Warnings are logged in updating functions Quentin McGaw 2022-05-28 20:58:50 +00:00
  • 381089ebdf chore(storage): rename InfoErrorer to Infoer (bad name) Quentin McGaw 2022-05-28 16:05:19 +00:00
  • 292813831d chore(updater): internal/updater/loop subpackage - Do not export updater interface - Export updater struct - Define local interfaces where needed - More restrictive updater loop interface in http control server - Inject Updater into updater loop as an interface Quentin McGaw 2022-05-28 16:03:59 +00:00
  • 991d75a1d0 chore(provider): rename all BuildConf to OpenVPNConfig Quentin McGaw 2022-05-27 22:04:14 +00:00
  • d9dfb81cb4 feat(perfect privacy): update servers data Quentin McGaw 2022-05-27 21:56:52 +00:00
  • 67a9cacb61 hotfix(custom): allow empty servers data Quentin McGaw 2022-05-27 21:47:41 +00:00
  • a91eb95456 chore(internal/provider): rename all structs to Provider Quentin McGaw 2022-05-27 18:05:04 +00:00
  • a295269518 hotfix(formatter): cyberghost not forced as format Quentin McGaw 2022-05-27 17:50:14 +00:00
  • 42904b6749 chore(all): move sub-packages to internal/provider Quentin McGaw 2022-05-27 17:48:51 +00:00
  • 364f9de756 feat(env): clean env variable values - Remove surrounding spaces - Remove suffix new line characters Quentin McGaw 2022-05-27 17:22:50 +00:00
  • 7fd45cf17f feat(wireguard): add debug logs for IPv6 detection - To debug issue #998 - Enable with LOG_LEVEL=debug Quentin McGaw 2022-05-27 16:56:20 +00:00
  • eb71cfb144 chore(deps): upgrade gopkg.in/yaml.v3 to v3.0.1 - fix 'vulnerability' alert on github - no impact really since it's just used in unit tests - checked with go mod why gopkg.in/yaml.v3 Quentin McGaw 2022-05-27 16:33:03 +00:00
  • 48e469917e chore(ci): remove tidy check - Not really needed with newer go install - Conflicts with Go 1.17 go.mod format - Conflicts with manual indirect dependency upgrade Quentin McGaw 2022-05-27 17:27:40 +00:00
  • 4bcd8ee9f5 chore(constants): add internal/constants/openvpn package Quentin McGaw 2022-05-07 19:17:10 +00:00
  • 1b2bcf901a chore(surfshark): add package internal/provider/surshark/server - Merge internal/models/location.go and internal/constants/surfshark.go into internal/provider/surfshark/servers/locationdata.go Quentin McGaw 2022-05-07 19:12:29 +00:00
  • 306de8feda chore(constants): add internal/provider/privateinternetacess/presets package Quentin McGaw 2022-05-07 19:03:38 +00:00
  • e3696f1eea chore(constants): inline Openvpn values in each provider Quentin McGaw 2022-05-07 19:00:41 +00:00
  • 7ff14a356c chore(internal/providers): simplify OpenVPN config building Quentin McGaw 2022-04-25 07:57:45 +00:00
  • 4bde50fb3a chore(all): use casers instead of strings.Title - Add golang.org/x/text dependency - Update code to use cases.Title(language.English) Quentin McGaw 2022-05-27 15:49:41 +00:00
  • bd0868d764 chore(all): provider to servers map in allServers - Simplify formatting CLI - Simplify updater code - Simplify filter choices for config validation - Simplify all servers deep copying - Custom JSON marshaling methods for AllServers - Simplify provider constructor switch - Simplify storage merging - Simplify storage reading and extraction - Simplify updating code Quentin McGaw 2022-05-27 00:59:47 +00:00
  • 5ffe8555ba chore(lint): upgrade golangci-lint from v1.44.2 to v1.46.2 - Add linter execinquery - Add linter nosprintfhostport Quentin McGaw 2022-05-27 00:52:25 +00:00
  • 78ccbb21cd change(servers.json): change provider names - From pia to private internet access - From perfectprivacy to perfect privacy - From vpnunlimited to vpn unlimited - This is done to match string constants in the code for another refactor - Reset each of these providers servers version to 1. Quentin McGaw 2022-05-27 00:35:33 +00:00
  • 92dbe1ebad chore(cli): refactor FormatServers to use provider strings Quentin McGaw 2022-05-08 19:05:36 +00:00
  • 2eec60cdd2 chore(custom): validate Openvpn file earlier Quentin McGaw 2022-05-07 18:27:20 +00:00
  • da8c104ebd chore(internal/provider/utils): unexport functions Quentin McGaw 2022-05-07 17:10:28 +00:00
  • 0ef7b66047 chore(internal/provider): GetConnection test Quentin McGaw 2022-05-07 17:08:25 +00:00
  • e32d251cc1 hotfix(windscribe): OpenVPN certificate validation v3.29.0 Quentin McGaw 2022-05-07 07:05:24 +00:00
  • 9dd5e7bf1d fix: PUID and PGID as 32 bit unsigned integers Quentin McGaw 2022-05-01 13:35:14 +00:00
  • b6de6035f6 hotfix(nordvpn): use aes-256-cbc before GCM Quentin McGaw 2022-04-28 13:47:24 +00:00
  • 88ccaf0b83 feat(torguard): update servers data Quentin McGaw 2022-04-26 11:01:42 +00:00
  • 52c8bc075f feat(nordvpn): update servers data Quentin McGaw 2022-04-26 11:01:05 +00:00
  • 2537cd5271 fix(port-forwarding): loop exit from vpn loop Quentin McGaw 2022-04-25 08:23:56 +00:00
  • db91625de4 fix(pia): port forwarding certificate - Do not use custom PIA certificate - Only use OS certificates - Update unit test Quentin McGaw 2022-04-25 08:23:33 +00:00
  • df78386fbe chore(ci): add codeql analysis Quentin McGaw 2022-04-23 12:30:15 -04:00
  • a1d70f740a fix(nordvpn): allow aes-256-gcm for Openvpn 2.4 Quentin McGaw 2022-04-23 12:53:24 +00:00
  • 187f42277a fix(pia): hide escaped url query values Quentin McGaw 2022-04-23 11:21:08 +00:00
  • e1f89bb569 fix(health): HEALTH_VPN_DURATION_ADDITION Quentin McGaw 2022-04-23 11:02:56 +00:00
  • 1d94f8ab2b chore(storage): remove unneeded VPN default Quentin McGaw 2022-04-23 10:59:58 +00:00
  • 045ecabb78 chore(updater): set vpn field for all providers - Bump servers model versions for all providers except mullvad, ivpn, windscribe - Do not leave vpn JSON field empty for any server Quentin McGaw 2022-04-23 10:59:29 +00:00
  • e6c3cb078a chore(storage): tcp and udp fields for all servers - Updater code sets UDP and TCP compatibility for all providers - Increase servers.json model versions for affected providers (mullvad, windscribe, privado, protonvpn, privatevpn) - Remove retro-compatibility server defaults - Update all affected providers servers data (mullvad, windscribe, privado, protonvpn, privatevpn) Quentin McGaw 2022-04-22 21:25:00 +00:00
  • afa51b3ff6 hotfix(storage): servers json versions updated Quentin McGaw 2022-04-22 21:12:27 +00:00
  • f9c80b2285 hotfix(privatevpn): add missing IP addresses Quentin McGaw 2022-04-22 21:03:38 +00:00
  • fc5cf44b2c fix(firewall): iptables detection improved 1. Try setting a dummy output rule 2. Remove the dummy output rule 3. Get the INPUT table policy 4. Set the INPUT table policy to its existing policy Quentin McGaw 2022-04-22 17:23:57 +00:00
  • 0c0f1663b1 chore: simplify provider GetConnection Quentin McGaw 2022-04-19 14:28:57 +00:00