cleaner ip to sockaddr conversion
1. Never panic. 2. Only return a unspecified address if the IP is nil (no other random error cases). 3. Simplify the logic.
Showing
Please register or sign in to comment
1. Never panic. 2. Only return a unspecified address if the IP is nil (no other random error cases). 3. Simplify the logic.