修复Roundcube空URL和白名单重复同步
1. ROUNDCUBE_URL: os.getenv返回空字符串时不回退默认值,改为 or 默认值 2. ProxyFetcher: 缓存已同步白名单IP,后续线程跳过重复同步
This commit is contained in:
@@ -12,8 +12,8 @@ from loguru import logger
|
||||
import requests
|
||||
|
||||
|
||||
# Roundcube Webmail 地址。可通过环境变量覆盖。
|
||||
ROUNDCUBE_URL = os.getenv("MAIL_ROUNDCUBE_URL", "http://111.229.206.54:8000/")
|
||||
# Roundcube Webmail 地址。可通过环境变量覆盖。空值时回退到默认。
|
||||
ROUNDCUBE_URL = os.getenv("MAIL_ROUNDCUBE_URL") or "http://111.229.206.54:8000/"
|
||||
|
||||
|
||||
class EmailVerifier:
|
||||
|
||||
Reference in New Issue
Block a user