Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 19e87e9

Browse files
committed
[proxy]修复停用位置和浏览器分析后列表空白的问题
1 parent 3f21049 commit 19e87e9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • teaweb/actions/default/proxy/log

teaweb/actions/default/proxy/log/list.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package log
33
import (
44
"fmt"
55
"github.com/TeaWeb/code/teadb"
6+
"github.com/TeaWeb/code/tealogs/accesslogs"
67
"github.com/iwind/TeaGo/actions"
78
"github.com/iwind/TeaGo/logs"
89
"github.com/iwind/TeaGo/maps"
@@ -65,6 +66,10 @@ func (this *ListAction) Run(params struct {
6566
this.Data["lastId"] = accessLogs[0].Id.Hex()
6667
}
6768
for _, accessLog := range accessLogs {
69+
if accessLog.Extend == nil {
70+
accessLog.Extend = new(accesslogs.AccessLogExtend)
71+
}
72+
6873
// filters
6974
if len(params.RemoteAddr) > 0 && !this.match(accessLog.RemoteAddr, params.RemoteAddr) {
7075
continue

0 commit comments

Comments
 (0)