1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-02-20 23:47:21 -05:00

Clean useless code

This commit is contained in:
Jinqiu Yu 2018-03-23 14:20:14 +08:00
parent 3ff570a050
commit 33e090befe

View File

@ -28,11 +28,6 @@ func (r *DomainRecord) Expired() bool {
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 {
sync.Mutex
hosts map[string]net.IP