[#46898331] Logic of which source host to use

Unit tests pass, integration tests do not.