mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-09 00:20:26 +08:00
修复无法显示IPv6最近日志的Bug
This commit is contained in:
@@ -30,6 +30,9 @@ func (this *IndexAction) RunGet(params struct {
|
|||||||
this.ErrorPage(err)
|
this.ErrorPage(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.Data["regions"] = ""
|
||||||
|
this.Data["isp"] = ""
|
||||||
if regionResp.IpRegion != nil {
|
if regionResp.IpRegion != nil {
|
||||||
var regionName = regionResp.IpRegion.Summary
|
var regionName = regionResp.IpRegion.Summary
|
||||||
|
|
||||||
@@ -39,10 +42,8 @@ func (this *IndexAction) RunGet(params struct {
|
|||||||
regionName = regionName[:index]
|
regionName = regionName[:index]
|
||||||
}
|
}
|
||||||
this.Data["regions"] = regionName
|
this.Data["regions"] = regionName
|
||||||
} else {
|
this.Data["isp"] = regionResp.IpRegion.Isp
|
||||||
this.Data["regions"] = ""
|
|
||||||
}
|
}
|
||||||
this.Data["isp"] = regionResp.IpRegion.Isp
|
|
||||||
|
|
||||||
// IP列表
|
// IP列表
|
||||||
ipListResp, err := this.RPC().IPListRPC().FindEnabledIPListContainsIP(this.AdminContext(), &pb.FindEnabledIPListContainsIPRequest{
|
ipListResp, err := this.RPC().IPListRPC().FindEnabledIPListContainsIP(this.AdminContext(), &pb.FindEnabledIPListContainsIPRequest{
|
||||||
|
|||||||
Reference in New Issue
Block a user