Fixed issue #500
Merge pull request #509 from hintjens/master

Added IPv6 option to context