This makes it clearer that they are fresh on each attempt, and avoids the bookkeeping required to clearing them on failure. Also, remove an unnecessary err != nil. Signed-off-by: Josh Bleecher Snyder <[email protected]>
The sending code is identical for ipv4 and ipv6; select the conn, then use it. Signed-off-by: Josh Bleecher Snyder <[email protected]>
And document a bit. This name is more idiomatic. Signed-off-by: Josh Bleecher Snyder <[email protected]>