fix traffic counting

This commit is contained in:
wyx2685
2024-02-16 21:46:23 +09:00
parent 73f9b19222
commit 423ac622b5
5 changed files with 51 additions and 29 deletions

View File

@@ -19,12 +19,13 @@ func NewHysteria2Config() *Hysteria2Config {
}
type Hysteria2Options struct {
Hysteria2ConfigPath string `json:"Hysteria2ConfigPath"`
QUICConfig QUICConfig `json:"QUICConfig"`
Outbounds []Outbounds `json:"Outbounds"`
IgnoreClientBandwidth bool `json:"IgnoreClientBandwidth"`
DisableUDP bool `json:"DisableUDP"`
UDPIdleTimeout time.Duration `json:"UDPIdleTimeout"`
Masquerade serverConfigMasquerade `json:"masquerade"`
Masquerade serverConfigMasquerade `json:"Masquerade"`
}
type QUICConfig struct {