Skip to content

Commit

Permalink
Update status code
Browse files Browse the repository at this point in the history
  • Loading branch information
qu35t-code committed Jan 19, 2024
1 parent cfc43eb commit d152356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vpn/vpn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check failure on line 36 in lib/vpn/vpn.go

View workflow job for this annotation

GitHub Actions / lint

Error return value is not checked (errcheck)
}
Expand Down

0 comments on commit d152356

Please sign in to comment.