ouhbrg
This commit is contained in:
parent
8a7149441b
commit
50ca5b7398
1 changed files with 3 additions and 1 deletions
|
@ -17,7 +17,9 @@ def ip():
|
||||||
try:
|
try:
|
||||||
response = requests.get(
|
response = requests.get(
|
||||||
"https://ip.shronk.tech/lookup?ip=" + ip,
|
"https://ip.shronk.tech/lookup?ip=" + ip,
|
||||||
headers=request.headers
|
headers={
|
||||||
|
"User-Agent": request.headers["User-Agent"]
|
||||||
|
}
|
||||||
)
|
)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Reference in a new issue