It would be user agent delivery, I believe, not cloaking. Do you need the search engine's IP to do it? If not, then yep, perfectly acceptable. Doesn't matter what's acceptable to me though, it's what's acceptable to the search engines that matter.
I don't believe the search engines have a problem with it either. It's not against any rules or guidelines as far as I know.