Fix for incorrect detection of hostname/server params when used with multi-home system