Skip to content

Commit

Permalink
fix: hysteria config save failed
Browse files Browse the repository at this point in the history
  • Loading branch information
jonssonyan committed Sep 2, 2024
1 parent 1f844e6 commit e9e8ea5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export PATH
init_var() {
ECHO_TYPE="echo -e"

version=0.0.7
version=0.0.8

arch_arr="linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x"
}
Expand Down
18 changes: 9 additions & 9 deletions model/bo/hysteria2.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ type serverConfigACME struct {
// Only applicable when Type is empty
DisableHTTP *bool `yaml:"disableHTTP,omitempty" json:"disableHTTP" validate:"required"`
DisableTLSALPN *bool `yaml:"disableTLSALPN,omitempty" json:"disableTLSALPN" validate:"required"`
AltHTTPPort *int `yaml:"altHTTPPort,omitempty" json:"altHTTPPort" validate:"required"`
AltTLSALPNPort *int `yaml:"altTLSALPNPort,omitempty" json:"altTLSALPNPort" validate:"required"`
AltHTTPPort *int `yaml:"altHTTPPort,omitempty" json:"altHTTPPort,string" validate:"required"`
AltTLSALPNPort *int `yaml:"altTLSALPNPort,omitempty" json:"altTLSALPNPort,string" validate:"required"`
}

type serverConfigACMEHTTP struct {
AltPort *int `yaml:"altPort,omitempty" json:"altPort" validate:"required"`
AltPort *int `yaml:"altPort,omitempty" json:"altPort,string" validate:"required"`
}

type serverConfigACMETLS struct {
AltPort *int `yaml:"altPort,omitempty" json:"altPort" validate:"required"`
AltPort *int `yaml:"altPort,omitempty" json:"altPort,string" validate:"required"`
}

type serverConfigACMEDNS struct {
Expand All @@ -70,12 +70,12 @@ type serverConfigACMEDNS struct {
}

type serverConfigQUIC struct {
InitStreamReceiveWindow *uint64 `yaml:"initStreamReceiveWindow,omitempty" json:"initStreamReceiveWindow" validate:"omitempty"`
MaxStreamReceiveWindow *uint64 `yaml:"maxStreamReceiveWindow,omitempty" json:"maxStreamReceiveWindow" validate:"omitempty"`
InitConnectionReceiveWindow *uint64 `yaml:"initConnReceiveWindow,omitempty" json:"initConnReceiveWindow" validate:"omitempty"`
MaxConnectionReceiveWindow *uint64 `yaml:"maxConnReceiveWindow,omitempty" json:"maxConnReceiveWindow" validate:"omitempty"`
InitStreamReceiveWindow *uint64 `yaml:"initStreamReceiveWindow,omitempty" json:"initStreamReceiveWindow,string" validate:"omitempty"`
MaxStreamReceiveWindow *uint64 `yaml:"maxStreamReceiveWindow,omitempty" json:"maxStreamReceiveWindow,string" validate:"omitempty"`
InitConnectionReceiveWindow *uint64 `yaml:"initConnReceiveWindow,omitempty" json:"initConnReceiveWindow,string" validate:"omitempty"`
MaxConnectionReceiveWindow *uint64 `yaml:"maxConnReceiveWindow,omitempty" json:"maxConnReceiveWindow,string" validate:"omitempty"`
MaxIdleTimeout *string `yaml:"maxIdleTimeout,omitempty" json:"maxIdleTimeout" validate:"omitempty"`
MaxIncomingStreams *int64 `yaml:"maxIncomingStreams,omitempty" json:"maxIncomingStreams" validate:"omitempty"`
MaxIncomingStreams *int64 `yaml:"maxIncomingStreams,omitempty" json:"maxIncomingStreams,string" validate:"omitempty"`
DisablePathMTUDiscovery *bool `yaml:"disablePathMTUDiscovery,omitempty" json:"disablePathMTUDiscovery" validate:"omitempty"`
}

Expand Down
2 changes: 1 addition & 1 deletion model/constant/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ const (

TokenType = "Bearer"

Version = "v0.0.7"
Version = "v0.0.8"
)

0 comments on commit e9e8ea5

Please sign in to comment.