mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-27 12:35:21 -05:00
clean imports
This commit is contained in:
@@ -3,7 +3,7 @@ package protocol
|
||||
import (
|
||||
"runtime"
|
||||
|
||||
v2net "v2ray.com/core/common/net"
|
||||
"v2ray.com/core/common/net"
|
||||
"v2ray.com/core/common/uuid"
|
||||
)
|
||||
|
||||
@@ -58,16 +58,16 @@ type RequestHeader struct {
|
||||
Command RequestCommand
|
||||
Option RequestOption
|
||||
Security Security
|
||||
Port v2net.Port
|
||||
Address v2net.Address
|
||||
Port net.Port
|
||||
Address net.Address
|
||||
User *User
|
||||
}
|
||||
|
||||
func (v *RequestHeader) Destination() v2net.Destination {
|
||||
func (v *RequestHeader) Destination() net.Destination {
|
||||
if v.Command == RequestCommandUDP {
|
||||
return v2net.UDPDestination(v.Address, v.Port)
|
||||
return net.UDPDestination(v.Address, v.Port)
|
||||
}
|
||||
return v2net.TCPDestination(v.Address, v.Port)
|
||||
return net.TCPDestination(v.Address, v.Port)
|
||||
}
|
||||
|
||||
type ResponseOption byte
|
||||
@@ -96,8 +96,8 @@ type ResponseHeader struct {
|
||||
}
|
||||
|
||||
type CommandSwitchAccount struct {
|
||||
Host v2net.Address
|
||||
Port v2net.Port
|
||||
Host net.Address
|
||||
Port net.Port
|
||||
ID *uuid.UUID
|
||||
AlterIds uint16
|
||||
Level uint32
|
||||
|
||||
Reference in New Issue
Block a user