Filter out socket types we don't support

Fixes #2.