初步实现HTTP3

This commit is contained in:
GoEdgeLab
2023-06-01 17:48:01 +08:00
parent 5513350da3
commit b2b03adbbb
11 changed files with 1763 additions and 991 deletions

View File

@@ -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
}