Right now, if no --server-url is passed to the CLI installer, it attempts to guess. Since there is not enough information for it to guess correctly, it usually puts up a rather bad guess (localhost, mostly). If, however, we do not guess, and just not set a wgServer, WebRequest will do the guessing - and its guesses are far more accurate, since it has more information to work with.
So if there's no --server-url passed, wgServer shouldn't be set.
Version: unspecified
Severity: normal