This commit is contained in:
本间白猫 2025-01-07 14:52:19 +08:00
parent 0698879532
commit eb577baf35
4 changed files with 13 additions and 11 deletions

View File

@ -204,8 +204,9 @@ Through actual testing, when proxy server performance is sufficient, ProxyCat ca
### 2025/01/07
- Added caching mechanism to proxy detection module to prevent frequent checks
- Optimized error handling and logging
- Introduced connection pool mechanism to improve performance.
- Optimized error handling and logging.
- Enhanced proxy switching mechanism.
### 2025/01/03
@ -267,8 +268,6 @@ Through actual testing, when proxy server performance is sufficient, ProxyCat ca
- Added HTTPS protocol support
- Changed asyncio.timeout() to asyncio.wait_for() for lower Python version support
[Additional change log entries follow similar pattern...]
## Development Plan
- [x] Added local server authentication

View File

@ -211,8 +211,9 @@ docker logs proxycat-app-1
### 2025/01/07
- 代理检测模块增加缓存机制,防止频繁检查。
- 优化部分错误处理和日志记录。
- 引入连接池机制提高性能。
- 优化部分错误处理和日志记录。
- 代理切换机制优化。
### 2025/01/03

View File

@ -72,7 +72,9 @@ MESSAGES = {
'response_write_error': '写入响应时出错: {}',
'consecutive_failures': '检测到连续代理失败: {}',
'invalid_proxy': '当前代理无效: {}',
'proxy_switched': '已从代理 {} 切换到 {}'
'proxy_switched': '已从代理 {} 切换到 {}',
'consecutive_failures': '检测到连续代理失败: {}',
'invalid_proxy': '当前代理无效: {}'
},
'en': {
'getting_new_proxy': 'Getting new proxy IP',
@ -143,7 +145,9 @@ MESSAGES = {
'response_write_error': 'Error writing response: {}',
'consecutive_failures': 'Consecutive proxy failures detected for {}',
'invalid_proxy': 'Current proxy is invalid: {}',
'proxy_switched': 'Switched from proxy {} to {}'
'proxy_switched': 'Switched from proxy {} to {}',
'consecutive_failures': 'Consecutive proxy failures detected for {}',
'invalid_proxy': 'Current proxy is invalid: {}'
}
}
@ -340,7 +344,7 @@ async def check_for_updates(language='cn'):
match = re.search(r'<p>(ProxyCat-V\d+\.\d+\.\d+)</p>', content)
if match:
latest_version = match.group(1)
CURRENT_VERSION = "ProxyCat-V1.9.2"
CURRENT_VERSION = "ProxyCat-V1.9.3"
if version.parse(latest_version.split('-V')[1]) > version.parse(CURRENT_VERSION.split('-V')[1]):
print(f"{Fore.YELLOW}{get_message('new_version_found', language)} 当前版本: {CURRENT_VERSION}, 最新版本: {latest_version}")
print(f"{Fore.YELLOW}{get_message('visit_quark', language)}")

View File

@ -550,8 +550,6 @@ class AsyncProxyServer:
self.switching_proxy = True
self.last_switch_attempt = current_time
self.proxy_failed = True
self.proxy_fail_count = 0
old_proxy = self.current_proxy
await self.get_proxy()
self.last_switch_time = current_time