Received: from eggs.gnu.org ([2001:4830:134:3::10]:33669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wjmcv-0005Mp-1o for qemu-devel@nongnu.org; Mon, 12 May 2014 05:34:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wjmco-00024v-TS for qemu-devel@nongnu.org; Mon, 12 May 2014 05:34:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wjmco-00024n-MV for qemu-devel@nongnu.org; Mon, 12 May 2014 05:34:22 -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 s4C9YLvD010278 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 12 May 2014 05:34:21 -0400 Message-ID: <1399887258.12413.6.camel@nilsson.home.kraxel.org> From: Gerd Hoffmann Date: Mon, 12 May 2014 11:34:18 +0200 In-Reply-To: <1399653553-5978-1-git-send-email-akong@redhat.com> References: <1399653553-5978-1-git-send-email-akong@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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, qemu-devel@nongnu.org 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. cheers, Gerd