1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 10:08:15 -05:00

prefer pointer

This commit is contained in:
v2ray 2016-07-25 21:55:05 +02:00
parent a29a6a586d
commit a509252c24
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -35,7 +35,7 @@ func BeforeTime(t time.Time) ValidationStrategy {
} }
} }
func (this TimeoutValidStrategy) IsValid() bool { func (this *TimeoutValidStrategy) IsValid() bool {
return this.until.After(time.Now()) return this.until.After(time.Now())
} }