prefer pointer

pull/219/head
v2ray 8 years ago
parent a29a6a586d
commit a509252c24
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -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())
} }

Loading…
Cancel
Save