mirror of https://github.com/v2ray/v2ray-core
fix kcp dial log
parent
cf6d36ecd5
commit
e9fdc35c3c
|
@ -15,8 +15,8 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func DialKCP(src v2net.Address, dest v2net.Destination) (internet.Connection, error) {
|
func DialKCP(src v2net.Address, dest v2net.Destination) (internet.Connection, error) {
|
||||||
log.Info("Dialling KCP to ", dest)
|
|
||||||
udpDest := v2net.UDPDestination(dest.Address(), dest.Port())
|
udpDest := v2net.UDPDestination(dest.Address(), dest.Port())
|
||||||
|
log.Info("Dialling KCP to ", udpDest)
|
||||||
conn, err := internet.DialToDest(src, udpDest)
|
conn, err := internet.DialToDest(src, udpDest)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in New Issue