Hostname not detected during install

I install phplist 20 to 30 times per day and even in 3.3.3, most of the time in the settings area after install I have to fill in the urls for the site because it comes up as blank “hostname not detected”. Sometimes it works and everything gets filled automatically, there doesn’t seem to be any reason for it to work or not no matter how many times I test. Its a problem because when it doesn’t work I have to fill it all settings page and it adds a lot of time to the install and also sometimes causes problems with spamhaus. Anyone know why sometimes it doesn’t fill in the settings automatically and fails to detects hostname? Anyone else ever get this?

@HarrisonJ It appears to come from environment or $_SERVER variables. See file defaultconfig.php at line 24.