mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 23:47:07 -05:00
var -> const
This commit is contained in:
parent
566adec285
commit
f5fd76ab85
@ -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)
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user