From d152356af81f9cdff66baa182f52eb10984af4cf Mon Sep 17 00:00:00 2001 From: QU35T-code Date: Fri, 19 Jan 2024 11:18:05 +0100 Subject: [PATCH] Update status code --- lib/vpn/vpn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vpn/vpn.go b/lib/vpn/vpn.go index f8797a0..61fa4cd 100644 --- a/lib/vpn/vpn.go +++ b/lib/vpn/vpn.go @@ -31,7 +31,7 @@ func downloadVPN(url string) error { return nil } - if resp.StatusCode == 500 { + if resp.StatusCode == 500 || resp.StatusCode == 400 { fmt.Println("The server returned an error. New attempt to download the VPN.") downloadVPN(url) }