mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-01-01 08:16:41 +08:00
IP库增加释放方法
This commit is contained in:
@@ -115,3 +115,9 @@ func (this *IPLibrary) LookupIP(ip string) *QueryResult {
|
||||
}
|
||||
return this.Lookup(net.ParseIP(ip))
|
||||
}
|
||||
|
||||
func (this *IPLibrary) Destroy() {
|
||||
if this.reader != nil {
|
||||
this.reader.Destroy()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user