mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-03 12:20:27 +08:00
增加是否在手机浏览器上也支持HTTP/3的选项
This commit is contained in:
@@ -5,13 +5,15 @@ package nodeconfigs
|
||||
const DefaultHTTP3Port = 443
|
||||
|
||||
type HTTP3Policy struct {
|
||||
IsOn bool `yaml:"isOn" json:"isOn"`
|
||||
Port int `yaml:"port" json:"port"`
|
||||
IsOn bool `yaml:"isOn" json:"isOn"`
|
||||
Port int `yaml:"port" json:"port"`
|
||||
SupportMobileBrowsers bool `yaml:"supportMobileBrowsers" json:"supportMobileBrowsers"` // enable http/3 on common mobile browsers
|
||||
}
|
||||
|
||||
func NewHTTP3Policy() *HTTP3Policy {
|
||||
return &HTTP3Policy{
|
||||
Port: DefaultHTTP3Port,
|
||||
Port: DefaultHTTP3Port,
|
||||
SupportMobileBrowsers: false,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user