[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] sockets: ensure we can bind to both ipv4 & ipv6
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH] sockets: ensure we can bind to both ipv4 & ipv6 separately |
Date: |
Fri, 28 Apr 2017 17:31:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
"Daniel P. Berrange" <address@hidden> writes:
> On Fri, Apr 28, 2017 at 09:57:24AM -0500, Eric Blake wrote:
>> On 04/28/2017 07:15 AM, Daniel P. Berrange wrote:
>> > When binding to an IPv6 socket we currently force the
>> > IPV6_V6ONLY flag to off. This means that the IPv6 socket
>> > will accept both IPv4 & IPv6 sockets when QEMU is launched
>> > with something like
>> >
>> > -vnc :::1
>>
>> At first glance, I thought that was too many :. But I guess it is
>> parsed as host:screen, with host of '::', and port offset of '1'...
>
> Yeah, I was amazed when it actually worked in fact :-) I thought
> I was going to have to use {::}:1, but it seems we reverse search
> for the last ':'.
I would've expected we need ":[::1]". Too many ad hoc parsers...
[...]