diff --git a/main.py b/main.py index dd0c0c3..6d5c976 100644 --- a/main.py +++ b/main.py @@ -48,7 +48,7 @@ errorLogger = Logger("ERROR", [ANSI.BOLD, ANSI.RED]) vpnLogger = Logger("", [ANSI.ITALIC, ANSI.BLACK+60]) def getPublicIp(): - return requests.head("https://wikipedia.org").headers["X-Client-IP"] + return requests.head("https://wikipedia.org", headers={"User-Agent": "HEI-VPN 1.0"}).headers["X-Client-IP"] if getPublicIp() == "153.109.1.93": warningLogger.log("You are already in the HEI network. You cannot use the VPN")