mirror of
https://github.com/jxxghp/MoviePilot-Plugins.git
synced 2026-05-23 07:26:47 +00:00
15 lines
576 B
Python
15 lines
576 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')
|