var -> const

pull/215/head
v2ray 2016-07-11 15:54:19 +02:00
parent 566adec285
commit f5fd76ab85
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 3 additions and 3 deletions

View File

@ -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)
)