[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: 1.2.0 svnserve only listens on ipv6 on openbsd

From: Daniel Berlin <dberlin_at_dberlin.org>
Date: 2005-06-01 04:40:03 CEST

On Mon, 2005-05-23 at 15:12 -0700, Jim Morris wrote:
> Hi,
>
> I have just built 1.2.0 on OpenBSD, and when I run svnserve it only
> listens on the ipv6 network, and there is no listen port on ipv4.

Have you tried actually connecting to it with an ipv4 client and
verified that it can't?

> Is there a way to tell it to ignore ipv6? or at least have it listen on
> both?
>
>

What do you have in /etc/hosts for localhost?

It looks up the host you specify as the hostname, and then uses the
address family that the name resolver gives it for that.

Thus, if you have
127.0.0.1 localhost
::1 localhost

and your name resolver decides to use the ::1 address, it will end up
with an ipv6 name. (Before someone suggests that we do something about
this, i'm not aware of a good way around this that doesn't break ipv6
support)

However, at least on my linux system, it actually listens on both

tcp 0 0 :::3690 :::*
LISTEN

I can connect to this instance with both an ipv4 and ipv6 client, cutely
enough.

Anyway you can override the detection by explicitly specifying a listen
host that is an ipv4 address.

try adding

--listen-host "127.0.0.1"

to the svnserve command line

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jun 1 04:41:36 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.