Quentin McGaw
d6924597dd
chore(netlink): separate linux only and OS independent code
...
- Move `Addr` and its `String` method to `types.go`
- Move `IsWireguardSupported` to `wireguard.go` to have `family.go` OS independant
- Remove dependency on vishvananda/netlink in `ipv6.go`
- Move `Link` to `types.go`
- Move `Route` to `types.go`
- Move `Rule` and its `String` method to `types.go`
2023-05-29 06:56:55 +00:00
Quentin McGaw
c26476a2fd
chore(netlink): remove unused link fields
2023-05-29 06:56:52 +00:00
Quentin McGaw
5be0d0bbba
feat(wireguard): debug logs log obfuscated keys
2023-05-29 06:45:12 +00:00
Quentin McGaw
38ddcfa756
chore(netlink): define own types with minimal fields
...
- Allow to swap `github.com/vishvananda/netlink`
- Allow to add build tags for each platform
- One step closer to development on non-Linux platforms
2023-05-29 06:44:58 +00:00
Quentin McGaw
163ac48ce4
chore(wireguard): fix netlink integration test
...
- Broken since recent commit 9d1a0b60a2
2023-05-29 05:54:01 +00:00
Quentin McGaw
def407d610
chore(settings): use qdm12/gosettings functions
...
- use: FileExists, ObfuscateKey, BoolToYesNo
- remove local functions moved to gosettings
2023-05-28 10:33:36 +00:00
Quentin McGaw
9d1a0b60a2
fix(netlink): use AddrReplace instead of AddrAdd
2023-05-28 10:22:51 +00:00
Quentin McGaw
9cf2c9c4d2
chore(settings): remove now unused helpers/messages.go
2023-05-28 10:22:51 +00:00
Quentin McGaw
e7150ba254
chore(settings): remove unused settings helpers
2023-05-28 10:22:51 +00:00
Filippo Buletto
7ba70f19ef
fix(settings): fix httpproxy.go error message ( #1596 )
2023-05-27 20:01:55 +02:00
Quentin McGaw
7e325715c7
hotfix(settings): case insensitivity for server filters
2023-05-27 08:53:18 +00:00
Quentin McGaw
75670a80b8
chore(deps): bump gosettings and govalid
2023-05-27 08:52:41 +00:00
Quentin McGaw
a43973c093
chore(settings): use github.com/qdm12/gosettings
2023-05-25 12:08:43 +00:00
Quentin McGaw
1827a03afd
fix(airvpn): allow Airvpn as Wireguard provider
2023-05-24 21:47:31 +00:00
Quentin McGaw
3100cc1e5e
hotfix(routing): unmap ipv4-in-ipv6 when converting
2023-05-22 08:03:52 +00:00
Quentin McGaw
eed62fdc6d
fix(routing): ip family match function
...
- ipv4-in-ipv6 should match ipv6
2023-05-22 06:01:52 +00:00
Quentin McGaw
d2b8dbcb10
chore(routing): remove old assigned ip debug log
2023-05-22 06:01:07 +00:00
Quentin McGaw
90d43856ef
fix(routing): net.IPNet to netip.Prefix conversion
2023-05-22 06:00:24 +00:00
Quentin McGaw
3b807e2ca9
feat(openvpn): add support for openvpn 2.6
2023-05-21 13:23:51 +00:00
Quentin McGaw
e8f2296a0d
change(openvpn): Openvpn 2.4 no longer supported
2023-05-21 13:20:02 +00:00
Lars Haalck
1dd38bc658
feat(wireguard): WIREGUARD_MTU enviromnent variable ( #1571 )
2023-05-21 15:11:07 +02:00
Quentin McGaw
63303bc311
fix(mullvad): add aes-256-gcm cipher
2023-05-21 12:33:27 +00:00
Julio Gutierrez
5200ee5722
chore(settings): use generics for helping functions ( #1427 )
2023-05-20 22:37:23 +02:00
Quentin McGaw
86ec75722a
chore(wireguard): use netip.AddrPort instead of *net.UDPAddr
2023-05-20 20:06:12 +00:00
Quentin McGaw
0a29337c3b
chore(all): replace net.IP with netip.Addr
2023-05-20 20:06:12 +00:00
Quentin McGaw
00ee6ff9a7
chore(wireguard): fix netlink integration tests
2023-05-20 20:06:12 +00:00
Quentin McGaw
6d0a2a968f
chore(settings): remove unneeded CopyNetipPrefix
2023-05-20 20:06:12 +00:00
15ky3
9a0fcbc011
fix(perfectprivacy): update cert and key ( #1549 )
...
Credits to @Thamos88 and @15ky3
2023-05-10 10:56:32 +02:00
Quentin McGaw
b6c8399c3b
feat(health): HEALTH_SUCCESS_WAIT_DURATION
2023-05-07 09:35:51 +00:00
Quentin McGaw
7a88a09341
chore(healthcheck): prefer Go dialer
2023-05-06 07:14:34 +00:00
Quentin McGaw
912b31cfc6
fix(settings): clarify Wireguard provider error
2023-05-01 08:00:25 +00:00
Quentin McGaw
d21a943779
chore(all): use netip.Prefix for ip networks
...
- remove usage of `net.IPNet`
- remove usage of `netaddr.IPPrefix`
2023-04-27 13:42:50 +00:00
Quentin McGaw
801a7fd6fe
chore(routing): simplify default routes for loop
2023-04-27 10:41:18 +00:00
Quentin McGaw
80053f6b7d
feat(routing): log default route family as string
2023-04-27 10:41:03 +00:00
Quentin McGaw
67bd1171ae
feat(env): rename vpn port forwarding variables
...
- `VPN_PORT_FORWARDING_STATUS_FILE`
- `VPN_PORT_FORWARDING`
- Deprecate PIA specific variables for VPN port forwarding
2023-04-27 10:23:55 +00:00
Quentin McGaw
4e2e46014d
chore(settings): inet.af/netaddr -> net/netip
2023-04-23 11:43:50 +00:00
Quentin McGaw
1693c59e0d
chore(lint): fix issues
...
- sources/env: remove unused `envToInt`
- fix `ireturn` error for `newCipherDESCBCBlock`
2023-04-22 11:02:53 +00:00
Quentin McGaw
9d4105ee59
chore(settings): remove unneeded pointers.go
2023-04-22 11:02:53 +00:00
Quentin McGaw
804ea7ebd6
feat(surfshark): update servers data
2023-04-20 23:22:27 +00:00
Quentin McGaw
3294b8df60
feat(perfectprivacy): update servers data
2023-04-20 23:10:57 +00:00
Quentin McGaw
d77ec7a6cb
fix(perfectprivacy): remove check for hostname in servers
2023-04-20 23:10:06 +00:00
Quentin McGaw
219d1f371c
chore(all): wrap all sentinel errors
...
- Force to use `errors.Is` instead of `==` to compare errors
2023-04-20 23:10:06 +00:00
Quentin McGaw
fa7fd5f076
fix(pprof): settings rates can be nil
2023-04-20 23:10:02 +00:00
Quentin McGaw
723d0f5e12
chore(lint): upgrade from v1.51.2 to v1.52.2
2023-04-12 09:40:00 +00:00
Kyle Manna
fc8a2abb8f
fix(routing): add policy rules for each destination local networks ( #1493 )
2023-04-11 09:03:07 -07:00
Quentin McGaw
16ecf48b89
fix(vpnunlimited): lower TLS security level to 0 ( #1476 )
2023-04-11 14:08:54 +02:00
Quentin McGaw
3b86927ca7
fix(vpnsecure): upgrade Openvpn key encryption if needed ( #1471 )
2023-04-03 03:40:09 -07:00
Quentin McGaw
a0b9044fd3
fix(hidemyass): add warning of end of life
...
- Fixes #1498
- Credits to @Fukitsu
2023-04-03 07:58:04 +00:00
Quentin McGaw
c7a841f4b4
chore(openvpn/extract): simplify PEM extract
2023-04-01 16:57:18 +00:00
Quentin McGaw
4ba159e483
chore(all): review error wrappings
...
- remove repetitive `cannot` and `failed` prefixes
- rename `unmarshaling` to `decoding`
2023-04-01 16:57:18 +00:00