summaryrefslogtreecommitdiff
path: root/pkg/vpn/openvpn.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-08-18 18:05:45 +0200
committerkali kaneko (leap communications) <kali@leap.se>2020-08-20 20:27:46 +0200
commitb9cae0b715ce34cfb0b7f85f023c31ef8ddd54d3 (patch)
treece8ff309c26150604e96eb9c5cd41cd61ff48470 /pkg/vpn/openvpn.go
parenta10c5ecd2b4bba6814fd66f0ec1997938d95bf92 (diff)
[feat] cache authentication token
Diffstat (limited to 'pkg/vpn/openvpn.go')
-rw-r--r--pkg/vpn/openvpn.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/pkg/vpn/openvpn.go b/pkg/vpn/openvpn.go
index 11bba69..6055e6a 100644
--- a/pkg/vpn/openvpn.go
+++ b/pkg/vpn/openvpn.go
@@ -51,14 +51,7 @@ func (b *Bitmask) StartVPN(provider string) error {
}
func (b *Bitmask) CanStartVPN() bool {
- if !b.bonafide.NeedsCredentials() {
- return true
- }
- _, err := b.getCert()
- if err != nil {
- return false
- }
- return true
+ return !b.bonafide.NeedsCredentials()
}
func (b *Bitmask) startTransport() (proxy string, err error) {