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