mirror of
https://github.com/daeuniverse/dae.git
synced 2025-01-22 02:07:50 +07:00
style: converge IP before dial TCP
This commit is contained in:
parent
9bc0663277
commit
272ee60d25
@ -96,6 +96,7 @@ func (c *ControlPlane) handleConn(lConn net.Conn) (err error) {
|
||||
}).Infof("%v <-> %v", RefineSourceToShow(src, dst.Addr(), consts.LanWanFlag_NotApplicable), RefineAddrPortToShow(dst))
|
||||
|
||||
// Dial and relay.
|
||||
dst = netip.AddrPortFrom(common.ConvergeIp(dst.Addr()), dst.Port())
|
||||
rConn, err := d.DialTcp(c.ChooseDialTarget(outboundIndex, dst, domain))
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to dial %v: %w", dst, err)
|
||||
|
Loading…
Reference in New Issue
Block a user