Explorar o código

prefer pointer

v2ray %!s(int64=9) %!d(string=hai) anos
pai
achega
a509252c24
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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())
 }