Updated to_sockaddr function with correct address family for IPv6
Updated to_sockaddr function with correct address family for IPv6

3drobotics/SwiftIO,luyi326/SwiftIO,luyi326/SwiftIO,3drobotics/SwiftIO