Release 1.3.0: Hysteria2 BBR/Salamander/masquerade options and subscription URL import.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Navis
2026-07-28 07:26:17 +03:00
co-authored by Cursor
parent 7eaf53f7c2
commit 5d2cb6d76a
18 changed files with 807 additions and 52 deletions
+20 -1
View File
@@ -23,9 +23,12 @@ type Config struct {
// SystemProxy enables Windows Internet Settings / WinHTTP proxy on connect.
SystemProxy bool `json:"system_proxy"`
// BinDir is where protocol binaries (naive.exe) are stored.
// BinDir is where protocol binaries (naive.exe / hysteria.exe) are stored.
BinDir string `json:"bin_dir,omitempty"`
// SubscriptionURL pulls share links (one per line or base64) and imports profiles.
SubscriptionURL string `json:"subscription_url,omitempty"`
Profiles []Profile `json:"profiles"`
}
@@ -47,6 +50,22 @@ type Profile struct {
NoPostQuantum bool `json:"no_post_quantum,omitempty"`
Log string `json:"log,omitempty"`
Env map[string]string `json:"env,omitempty"`
// Hysteria 2 options (client-side). Masquerade on server is separate;
// here SNI/insecure/pin emulate HTTPS look + salamander/gecko obfuscation.
Hy2Congestion string `json:"hy2_congestion,omitempty"` // bbr | reno
Hy2BBRProfile string `json:"hy2_bbr_profile,omitempty"` // standard | conservative | aggressive
Hy2BandwidthUp string `json:"hy2_bandwidth_up,omitempty"` // empty = BBR; set for Brutal
Hy2BandwidthDown string `json:"hy2_bandwidth_down,omitempty"`
Hy2Obfs string `json:"hy2_obfs,omitempty"` // salamander | gecko
Hy2ObfsPassword string `json:"hy2_obfs_password,omitempty"`
Hy2SNI string `json:"hy2_sni,omitempty"`
Hy2Insecure bool `json:"hy2_insecure,omitempty"`
Hy2PinSHA256 string `json:"hy2_pin_sha256,omitempty"`
Hy2FastOpen bool `json:"hy2_fast_open,omitempty"`
Hy2Lazy bool `json:"hy2_lazy,omitempty"`
Hy2HopInterval string `json:"hy2_hop_interval,omitempty"` // e.g. 30s
Hy2ALPN string `json:"hy2_alpn,omitempty"`
}
// DefaultListen returns listen addresses suitable for Windows system proxy.