Skip to content

Commit

Permalink
Throw away value of SetDeadline
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewAubury committed Aug 6, 2024
1 parent 20229d3 commit daeebd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func SOAArpaLookup(domain string) (string, error) {
defer conn.Close()

// Set a timeout for the connection
conn.SetDeadline(time.Now().Add(5 * time.Second))
_ = conn.SetDeadline(time.Now().Add(5 * time.Second))

// Send the DNS query
_, err = conn.Write(packedMsg)
Expand Down

0 comments on commit daeebd2

Please sign in to comment.