فهرست منبع

prefer pointer

v2ray 9 سال پیش
والد
کامیت
a509252c24
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      common/protocol/server_spec.go

+ 1 - 1
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())
 }