Files
archived-MoviePilot-Plugins/plugins.v2/clashruleprovider/models/proxy/shadowsocksrproxy.py
wumode 8a738b7684 refactor: ClashRuleProvider
- 优化插件目录结构和数据结构, 解耦API层和服务层
- 添加了一些Pydantic模型, 用于校验配置
- 支持独立的订阅链接配置
- 新增覆写代理组和出站代理操作
- 支持 smart 组和代理集合
- 代理组回环检测
- 使用异步调度器
- 显示规则更改日期
- 完善了对嵌套逻辑规则和子规则的配置和验证
2025-09-30 00:54:24 +08:00

19 lines
665 B
Python

from pydantic import Field
from typing import Optional, Literal
from .proxybase import ProxyBase
class ShadowsocksRProxy(ProxyBase):
type: Literal['ssr'] = 'ssr'
cipher: str
password: str
obfs: Literal['plain', 'http_simple', 'http_post', 'random_head', 'tls1.2_ticket_auth', 'tls1.2_ticket_fastauth']
obfs_param: Optional[str] = Field(None, alias='obfs-param')
protocol: Literal['origin', 'auth_sha1_v4', 'auth_aes128_md5', 'auth_aes128_sha1', 'auth_chain_a', 'auth_chain_b']
protocol_param: Optional[str] = Field(None, alias='protocol-param')
class Config:
extra = 'allow'
allow_population_by_field_name = True