Issue #1058842 by speedracer79, larowlan: add back code to parse host from url dropped between version 1 and 2