Skip to content

Commit

Permalink
rename destIp to destIP
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Feb 5, 2016
1 parent 2d551c9 commit 6c860d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions proxy/vmess/outbound/outbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,18 @@ func (this *VMessOutboundHandler) Dispatch(firstPacket v2net.Packet, ray ray.Out
}

func (this *VMessOutboundHandler) startCommunicate(request *protocol.VMessRequest, dest v2net.Destination, ray ray.OutboundRay, firstPacket v2net.Packet) error {
var destIp net.IP
var destIP net.IP
if dest.Address().IsIPv4() || dest.Address().IsIPv6() {
destIp = dest.Address().IP()
destIP = dest.Address().IP()
} else {
ips, err := net.LookupIP(dest.Address().Domain())
if err != nil {
return err
}
destIp = ips[0]
destIP = ips[0]
}
conn, err := net.DialTCP("tcp", nil, &net.TCPAddr{
IP: destIp,
IP: destIP,
Port: int(dest.Port()),
})
if err != nil {
Expand Down

0 comments on commit 6c860d6

Please sign in to comment.