modify ProxyParser interface

This commit is contained in:
2025-06-12 02:48:59 +10:00
parent 1b662de245
commit 4f3c2bb280
11 changed files with 87 additions and 22 deletions

View File

@ -12,6 +12,14 @@ import (
// ShadowsocksParser Shadowsocks协议解析器
type ShadowsocksParser struct{}
func (p *ShadowsocksParser) SupportClash() bool {
return true
}
func (p *ShadowsocksParser) SupportMeta() bool {
return true
}
// GetPrefixes 返回支持的协议前缀
func (p *ShadowsocksParser) GetPrefixes() []string {
return []string{"ss://"}