From a509252c240b7854712ed94130688004aaac1611 Mon Sep 17 00:00:00 2001 From: v2ray Date: Mon, 25 Jul 2016 21:55:05 +0200 Subject: [PATCH] prefer pointer --- common/protocol/server_spec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/protocol/server_spec.go b/common/protocol/server_spec.go index f6eefa1c..359d7c59 100644 --- a/common/protocol/server_spec.go +++ b/common/protocol/server_spec.go @@ -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()) }