From 31ccea32c17fb46299b115b225bb356a0fc600af Mon Sep 17 00:00:00 2001 From: ivamp Date: Fri, 7 Feb 2025 18:16:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20=E5=AD=90=E5=9F=9F?= =?UTF-8?q?=E5=90=8D=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 ---- manifest.yaml | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/main.py b/main.py index 22023da..3967568 100644 --- a/main.py +++ b/main.py @@ -308,10 +308,6 @@ async def query_api( if '/' in domain: raise HTTPException(status_code=400, detail="域名不能包含路径") - # 检查是否为子域名 - if domain.count('.') > 1: - raise HTTPException(status_code=400, detail="不支持子域名,请使用主域名") - # 检查域名格式 if not re.match(domain_pattern, domain): raise HTTPException(status_code=400, detail="域名格式不正确,请使用正确的域名格式(如 example.com)") diff --git a/manifest.yaml b/manifest.yaml index 2c92f2e..5bdc77a 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -31,7 +31,7 @@ spec: runtimeClassName: "nvidia" containers: - name: icp-api - image: leafdev.top/leaf/icp-api:v0.0.1 + image: leafdev.top/leaf/icp-api:v0.0.2 ports: - containerPort: 80 protocol: TCP