mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2026-01-06 15:55:48 +08:00
节点状态中增加本地防火墙名称
This commit is contained in:
@@ -76,7 +76,9 @@ func (this *NodeStatusExecutor) update() {
|
||||
status.TrafficInBytes = teaconst.InTrafficBytes
|
||||
status.TrafficOutBytes = teaconst.OutTrafficBytes
|
||||
var localFirewall = firewalls.Firewall()
|
||||
status.HasLocalFirewall = localFirewall != nil && !localFirewall.IsMock()
|
||||
if localFirewall != nil && !localFirewall.IsMock() {
|
||||
status.LocalFirewallName = localFirewall.Name()
|
||||
}
|
||||
|
||||
// 记录监控数据
|
||||
monitor.SharedValueQueue.Add(nodeconfigs.NodeValueItemConnections, maps.Map{
|
||||
|
||||
Reference in New Issue
Block a user