From f5fd76ab85e94cf874fe1b7c4e9fb4854fe78724 Mon Sep 17 00:00:00 2001 From: v2ray Date: Mon, 11 Jul 2016 15:54:19 +0200 Subject: [PATCH] var -> const --- common/protocol/headers.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/protocol/headers.go b/common/protocol/headers.go index 6ffd6987e..b6844ff98 100644 --- a/common/protocol/headers.go +++ b/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) )