protected function assembleHost(Url $host) {
		if (! $host->hasHost()) {
			$host->setHost($this->defaultHost);
		}
		
		if (preg_match('/\.sock$/i', $host->getHost())) {
			$host->removePort();
		} else if (! $host->hasPort()) {
			$host->setPort($this->defaultPort);
		}
		
		return trim($host->assemble(), '/');
	}