瀏覽代碼

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