Fix logic for supported socket platforms
Merge pull request #322 from hunner/fix_socket

Fix logic for supported socket platforms