From c6c0209ad45fb7d2e45370ee3a39f2dd437603b0 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Mon, 17 May 2021 17:50:23 +0200 Subject: [feat] log dns lookup if first cert fetch fails --- pkg/vpn/openvpn.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg/vpn/openvpn.go') diff --git a/pkg/vpn/openvpn.go b/pkg/vpn/openvpn.go index a568a32..244195b 100644 --- a/pkg/vpn/openvpn.go +++ b/pkg/vpn/openvpn.go @@ -202,6 +202,8 @@ func (b *Bitmask) getCert() (certPath string, err error) { } } if failed || !isValidCert(certPath) { + d := config.APIURL[8 : len(config.APIURL)-1] + logDnsLookup(d) cert, err := b.bonafide.GetPemCertificateNoDNS() if cert != nil { log.Println("Successfully did certificate bypass") @@ -214,6 +216,7 @@ func (b *Bitmask) getCert() (certPath string, err error) { failed = true } } + return certPath, err } -- cgit v1.2.3