Skip to content

Commit

Permalink
修改UA。 (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
char-46 committed Apr 18, 2024
1 parent 530d14c commit 6e01284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def _open(url, reg):
try:
debug("open: %s", url)
res = urlopen(
Request(url, headers={'User-Agent': 'curl/7.63.0-ddns'}), timeout=60
Request(url, headers={'User-Agent': 'Mozilla/5.0 ddns'}), timeout=60
).read().decode('utf8', 'ignore')
debug("response: %s", res)
return compile(reg).search(res).group()
Expand Down

0 comments on commit 6e01284

Please sign in to comment.