mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-04 21:50:26 +08:00
查找HTTP3端口时只计算已经启用的
This commit is contained in:
@@ -729,6 +729,9 @@ func (this *NodeConfig) FindHTTP3Ports() (ports []int) {
|
|||||||
http3PolicyLocker.RLock()
|
http3PolicyLocker.RLock()
|
||||||
defer http3PolicyLocker.RUnlock()
|
defer http3PolicyLocker.RUnlock()
|
||||||
for _, policy := range this.HTTP3Policies {
|
for _, policy := range this.HTTP3Policies {
|
||||||
|
if !policy.IsOn {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if policy.Port <= 0 {
|
if policy.Port <= 0 {
|
||||||
policy.Port = DefaultHTTP3Port
|
policy.Port = DefaultHTTP3Port
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user