mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-30 23:37:44 +00:00
1 file changed
-5
@@ -28,11 +28,6 @@ func (r *DomainRecord) Expired() bool {
|
|||||||
return r.Expire.Before(time.Now())
|
return r.Expire.Before(time.Now())
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *DomainRecord) Inactive() bool {
|
|
||||||
now := time.Now()
|
|
||||||
return r.Expire.Before(now) || r.LastAccess.Add(time.Minute*5).Before(now)
|
|
||||||
}
|
|
||||||
|
|
||||||
type Server struct {
|
type Server struct {
|
||||||
sync.Mutex
|
sync.Mutex
|
||||||
hosts map[string]net.IP
|
hosts map[string]net.IP
|
||||||
|
|||||||
Reference in new issue
Block a user