mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-05-11 23:19:08 -04:00
move port out of address
This commit is contained in:
@@ -15,7 +15,7 @@ type FreedomConnection struct {
|
||||
}
|
||||
|
||||
func (this *FreedomConnection) Dispatch(firstPacket v2net.Packet, ray ray.OutboundRay) error {
|
||||
conn, err := net.Dial(firstPacket.Destination().Network(), firstPacket.Destination().Address().String())
|
||||
conn, err := net.Dial(firstPacket.Destination().Network(), firstPacket.Destination().NetAddr())
|
||||
log.Info("Freedom: Opening connection to %s", firstPacket.Destination().String())
|
||||
if err != nil {
|
||||
close(ray.OutboundOutput())
|
||||
|
||||
Reference in New Issue
Block a user