增加服务带宽统计

This commit is contained in:
GoEdgeLab
2022-07-05 20:37:00 +08:00
parent 21d85af2fa
commit 8af2a4f63d
15 changed files with 300 additions and 38 deletions

View File

@@ -43,7 +43,7 @@ func (this *Listener) Listen() error {
if this.group == nil {
return nil
}
protocol := this.group.Protocol()
var protocol = this.group.Protocol()
if protocol.IsUDPFamily() {
return this.listenUDP()
}
@@ -54,7 +54,7 @@ func (this *Listener) listenTCP() error {
if this.group == nil {
return nil
}
protocol := this.group.Protocol()
var protocol = this.group.Protocol()
tcpListener, err := this.createTCPListener()
if err != nil {