add forgotten `sockopt`

pull/4949/head
patterniha 2025-07-27 18:17:32 +03:30
parent 0d0155942d
commit e4085d2827
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ func dnsQuery(sockopt *internet.SocketConfig, server string, domain string) ([]b
dnsTimeoutCtx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()
// use xray's internet.DialSystem as mentioned above
conn, err := internet.DialSystem(dnsTimeoutCtx, dest, nil)
conn, err := internet.DialSystem(dnsTimeoutCtx, dest, sockopt)
defer func() {
err := conn.Close()
if err != nil {