1
0
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:
Darien Raymond
2017-01-14 00:27:45 +01:00
parent b40a139310
commit 8b00d6fc30
26 changed files with 96 additions and 100 deletions

View File

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