I see. shouldn't line https://github.com/composer/composer/pull/3026/files#diff-06425f3d3d1e9d2045246ebd96719fd3R292 then cut the hostname out of the url for the lookup?