fix: ConfigModel.easytier_host 支持列表(多地址保存)
This commit is contained in:
1 parent
b2e63803a7
commit
bb03a6fde0
1 file changed
+2
-2
@@ -2,7 +2,7 @@ import json, os, socket, subprocess, threading, time, httpx, hashlib, hmac, base
|
||||
from fastapi import FastAPI, HTTPException
|
||||
from fastapi.responses import HTMLResponse, FileResponse, JSONResponse, RedirectResponse
|
||||
from pydantic import BaseModel
|
||||
from typing import Optional, List
|
||||
from typing import Optional, List, Any
|
||||
CONFIG_PATH = os.environ.get("CONFIG_PATH", "/data/config.json")
|
||||
LOG_PATH = os.environ.get("LOG_PATH", "/data/logs.jsonl")
|
||||
LOG_RETENTION = 24 * 3600 # 日志只保留最近24小时, 超过自动删除
|
||||
@@ -422,7 +422,7 @@ class ConfigModel(BaseModel):
|
||||
huawei_sk: Optional[str] = None
|
||||
# custom webhook
|
||||
webhook_url: Optional[str] = None
|
||||
easytier_host: Optional[str] = None
|
||||
easytier_host: Optional[Any] = None
|
||||
easytier_port: Optional[int] = None
|
||||
nps_server: Optional[str] = None
|
||||
nps_vkey: Optional[str] = None
|
||||
|
||||
Reference in new issue
Block a user