mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-05-19 11:45:18 +08:00
初步实现HTTP3
This commit is contained in:
@@ -463,3 +463,13 @@ func (this *ServerConfig) ShouldCheckTrafficLimit() bool {
|
||||
func (this *ServerConfig) PlanId() int64 {
|
||||
return this.planId
|
||||
}
|
||||
|
||||
// SupportsHTTP3 是否支持HTTP/3
|
||||
func (this *ServerConfig) SupportsHTTP3() bool {
|
||||
return this.isOk &&
|
||||
this.HTTPS != nil &&
|
||||
this.HTTPS.IsOn &&
|
||||
this.HTTPS.SSLPolicy != nil &&
|
||||
this.HTTPS.SSLPolicy.IsOn &&
|
||||
this.HTTPS.SSLPolicy.HTTP3Enabled
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user