mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-29 13:35:20 -05:00
more security types in vmess.
This commit is contained in:
@@ -31,13 +31,20 @@ func (v *RequestOption) Clear(option RequestOption) {
|
||||
*v = (*v & (^option))
|
||||
}
|
||||
|
||||
type Security byte
|
||||
|
||||
func (v Security) Is(t SecurityType) bool {
|
||||
return v == Security(t)
|
||||
}
|
||||
|
||||
type RequestHeader struct {
|
||||
Version byte
|
||||
User *User
|
||||
Command RequestCommand
|
||||
Option RequestOption
|
||||
Address v2net.Address
|
||||
Port v2net.Port
|
||||
Version byte
|
||||
User *User
|
||||
Command RequestCommand
|
||||
Option RequestOption
|
||||
Security Security
|
||||
Address v2net.Address
|
||||
Port v2net.Port
|
||||
}
|
||||
|
||||
func (v *RequestHeader) Destination() v2net.Destination {
|
||||
|
||||
Reference in New Issue
Block a user