Skip to content

Commit

Permalink
fix: DoH3 fake addr issue
Browse files Browse the repository at this point in the history
  • Loading branch information
EkkoG committed Sep 26, 2024
1 parent 4ac92a8 commit 7dee011
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion control/dns_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import (
"github.com/daeuniverse/outbound/netproxy"
"github.com/daeuniverse/outbound/pkg/fastrand"
"github.com/daeuniverse/outbound/pool"
tc "github.com/daeuniverse/outbound/protocol/tuic/common"
"github.com/daeuniverse/quic-go"
"github.com/daeuniverse/quic-go/http3"
dnsmessage "github.com/miekg/dns"
Expand Down Expand Up @@ -652,7 +653,7 @@ func (c *DnsController) dialSend(invokingDepth int, req *udpRequest, data []byte
pkt := conn.(netproxy.PacketConn)
fakePkt := &netproxy.FakeNetPacketConn{
PacketConn: pkt,
LAddr: net.UDPAddrFromAddrPort(netip.AddrPortFrom(netip.MustParseAddr("::1"), 0)),
LAddr: net.UDPAddrFromAddrPort(tc.GetUniqueFakeAddrPort()),
RAddr: udpAddr,
}
c, e := quic.DialEarly(ctx, fakePkt, udpAddr, tlsCfg, cfg)
Expand Down

0 comments on commit 7dee011

Please sign in to comment.