New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IPv6 support #22
IPv6 support #22
Conversation
…6 (work in progress, not finished, not even runnable)
…esentation function
…e resolution (i.e. specify if IPv4 or IPv6 or both are acceptable
…adding test function for new functionality
…e Socket. Client side is working but only if the dynamically allocated addresses are not deleted from the heap, which needs to be fixed of course.
Nice! Please merge master into this branch, there seem to be conflicts |
private static func getAddressFromHostname(hostname: String) throws -> in_addr { | ||
private func resolveHostnameAndServiceToIPAddresses(socketConfig : SocketConfig, | ||
internetAddress : Internet_Address) throws | ||
-> Array<ResolvedInternetAddress> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Array<ResolvedInternetAddress>
-> [ResolvedInternetAddress]
|
||
let resolvedInternetAddressList = resolver.resolve(internetAddress: address) | ||
|
||
guard resolvedInternetAddressList.count != 0 else {throw Error(.IPAddressValidationFailed) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isEmpty
🎉 |
…nternetSocket, because we want to keep RawSocket as dump as possible
…between function parameter name and colon, deleting code that is disabled via commenting it.
…ging the SocksCore Examples: Demonstrate how to use the new static function for SocketConfig
…code for addresses, because those two were changed almost entirely during adding the IPv6 support.
Merging, amazing work @MatthiasKreileder, thanks! 🎉 |
Work in progress. Do not merge!