Received: from eggs.gnu.org ([2001:4830:134:3::10]:44691) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjpUs-00010c-6z for qemu-devel@nongnu.org; Mon, 12 May 2014 08:38:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WjpUm-0002LI-2A for qemu-devel@nongnu.org; Mon, 12 May 2014 08:38:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24431) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WjpUl-0002LD-Qu for qemu-devel@nongnu.org; Mon, 12 May 2014 08:38:16 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s4CCcF4u020449 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 12 May 2014 08:38:15 -0400 From: Markus Armbruster References: <1399653553-5978-1-git-send-email-akong@redhat.com> <1399887258.12413.6.camel@nilsson.home.kraxel.org> <20140512100628.GE21308@amosk.info> Date: Mon, 12 May 2014 14:38:12 +0200 In-Reply-To: <20140512100628.GE21308@amosk.info> (Amos Kong's message of "Mon, 12 May 2014 18:06:28 +0800") Message-ID: <8738gfqiiz.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] spice: return unspecified address according to protocol List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amos Kong Cc: djasa@redhat.com, Gerd Hoffmann , qemu-devel@nongnu.org Amos Kong writes: > On Mon, May 12, 2014 at 11:34:18AM +0200, Gerd Hoffmann wrote: >> Hi, >> >> > info->has_host = true; >> > - info->host = g_strdup(addr ? addr : "*"); >> > + info->host = g_strdup(addr ? addr : (qemu_opt_get_bool(opts, >> > + "ipv6", 0) >> > + ? "::" : "0.0.0.0")); >> >> "ipv6" means "force ipv6". If the option is not present spice-server >> might still listen on ipv6, and qemu can't easily figure whenever that >> is the case or not. > > OK. And management will not use this returned address, so it's > not a serious issue. > > Thanks. NAK this patch. Thanks for trying, Amos. The "*" is ugly... but I have no better ideas, either.