소스 검색

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