mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-05 09:30:24 +08:00
13 lines
237 B
Go
13 lines
237 B
Go
package models
|
|
|
|
import "encoding/json"
|
|
|
|
func (this *ReportNode) DecodeAllowIPs() []string {
|
|
var result = []string{}
|
|
if len(this.AllowIPs) > 0 {
|
|
// 忽略错误
|
|
_ = json.Unmarshal([]byte(this.AllowIPs), &result)
|
|
}
|
|
return result
|
|
}
|