     end
   end
 
-  # TODO: remove this when we depend on plug 1.1
-  defp get_listener_port(ref) do
-    case function_exported?(Plug.Adapters.Cowboy, :info, 1) do
-      true  -> Plug.Adapters.Cowboy.info(ref)[:port]
-      false -> :ranch.get_port(ref)
-    end
-  end
-
   defp info(scheme, endpoint, ref) do
-    port = get_listener_port(ref)
-    host = endpoint.config(:url)[:host] || "localhost"
-    "Running #{inspect endpoint} with Cowboy on #{scheme}://#{host}:#{port}"
+    port = :ranch.get_port(ref)
+    "Running #{inspect endpoint} with Cowboy using #{scheme} on port #{port}"
   end
 end

      Plug.Adapters.Cowboy.child_spec(scheme, endpoint, [], config)

    # Rewrite MFA for proper error reporting
    mfa = {__MODULE__, :start_link, [scheme, endpoint, config, mfa]}
    {ref, mfa, type, timeout, kind, modules}
  end


  @doc """
  Callback to start the Cowboy endpoint.
  """
  def start_link(scheme, endpoint, {m, f, [ref | _] = a}) do
    # ref is used by Ranch to identify its listeners, defaulting
    # to plug.HTTP and plug.HTTPS and overridable by users.
    case apply(m, f, a) do
      {:ok, pid} ->
        Logger.info info(scheme, endpoint, ref)
