feat: support masque outbound

This commit is contained in:
wwqgtxx
2026-01-28 18:06:26 +08:00
parent d18a14afeb
commit e45c896185
7 changed files with 662 additions and 3 deletions

View File

@@ -159,6 +159,13 @@ func ParseProxy(mapping map[string]any, options ...ProxyOption) (C.Proxy, error)
break
}
proxy, err = outbound.NewSudoku(*sudokuOption)
case "masque":
masqueOption := &outbound.MasqueOption{BasicOption: basicOption}
err = decoder.Decode(mapping, masqueOption)
if err != nil {
break
}
proxy, err = outbound.NewMasque(*masqueOption)
default:
return nil, fmt.Errorf("unsupport proxy type: %s", proxyType)
}