Restore compatibility with server versions where EnumProtocolDirection is not present