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