Skip to content

Commit

Permalink
feat(cos): add self domain
Browse files Browse the repository at this point in the history
  • Loading branch information
MorvanZhou committed May 24, 2024
1 parent 8fa25c1 commit 9a293ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/retk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def ssrf_check(url: str) -> bool:
return True
# cos url
settings = config.get_settings()
if host == f"{settings.COS_BUCKET_NAME}.cos.{settings.COS_REGION}.myqcloud.com":
if host == f"{settings.COS_BUCKET_NAME}.cos.{settings.COS_REGION}.myqcloud.com" or host == settings.COS_DOMAIN:
return True
try:
ip = ipaddress.IPv4Address(socket.gethostbyname(host))
Expand Down

0 comments on commit 9a293ed

Please sign in to comment.