增加edge-node accesslog命令,用来在本地查看访问日志

This commit is contained in:
刘祥超
2022-05-18 23:14:57 +08:00
parent 298cef7f05
commit a9d31a2e35
6 changed files with 187 additions and 3 deletions

View File

@@ -80,6 +80,13 @@ Loop:
return nil
}
// 发送到本地
if sharedHTTPAccessLogViewer.HasConns() {
for _, accessLog := range accessLogs {
sharedHTTPAccessLogViewer.Send(accessLog)
}
}
// 发送到API
if this.rpcClient == nil {
client, err := rpc.SharedRPC()