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