v2ray 9 лет назад
Родитель
Сommit
f5fd76ab85
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      common/protocol/headers.go

+ 3 - 3
common/protocol/headers.go

@@ -12,13 +12,13 @@ const (
 	RequestCommandUDP = RequestCommand(0x02)
 )
 
+type RequestOption byte
+
 const (
 	RequestOptionChunkStream     = RequestOption(0x01)
 	RequestOptionConnectionReuse = RequestOption(0x02)
 )
 
-type RequestOption byte
-
 func (this RequestOption) Has(option RequestOption) bool {
 	return (this & option) == option
 }
@@ -49,7 +49,7 @@ func (this *RequestHeader) Destination() v2net.Destination {
 
 type ResponseOption byte
 
-var (
+const (
 	ResponseOptionConnectionReuse = ResponseOption(1)
 )