Date: Tue, 01 Mar 2011 04:41:09 +0300 From: Anonymous <swell.k@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/155139: [patch] net-p2p/transmission-daemon: don't use IPv6 localhost by default Message-ID: <86sjv7ipmy.fsf@gmail.com> Resent-Message-ID: <201103010150.p211oB22030467@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 155139 >Category: ports >Synopsis: [patch] net-p2p/transmission-daemon: don't use IPv6 localhost by default >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Mar 01 01:50:11 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Anonymous >Release: FreeBSD 9.0-CURRENT amd64 >Organization: >Environment: transmission-daemon-2.21 this may be not enough to reproduce >Description: FreeBSD by default tries to use IPv6 address for localhost according to r64664 for /etc/hosts ::1 localhost localhost.my.domain 127.0.0.1 localhost localhost.my.domain as transmission-remote doesn't support IPv6 yet (see ticket#2236) the connection may fail $ transmission-remote -l [04:25:19.761] transmission-remote: (http://localhost:9091/transmission/rpc/) Couldn't connect to server or hang if net.inet.tcp.blackhole > 0 $ truss transmission-remote -l [...] connect(3,{ AF_INET6 [f4ac:c301:800:0:10::]:16391 },28) ERR#36 'Operation now in progress' >How-To-Repeat: >Fix: --- a.diff begins here --- Index: net-p2p/transmission-cli/files/patch-daemon-remote.c =================================================================== RCS file: net-p2p/transmission-cli/files/patch-daemon-remote.c diff -N net-p2p/transmission-cli/files/patch-daemon-remote.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ net-p2p/transmission-cli/files/patch-daemon-remote.c 1 Mar 2011 01:14:12 -0000 @@ -0,0 +1,11 @@ +--- daemon/remote.c~ ++++ daemon/remote.c +@@ -38,7 +38,7 @@ + #include <libtransmission/version.h> + + #define MY_NAME "transmission-remote" +-#define DEFAULT_HOST "localhost" ++#define DEFAULT_HOST "127.0.0.1" + #define DEFAULT_PORT atoi(TR_DEFAULT_RPC_PORT_STR) + #define DEFAULT_URL TR_DEFAULT_RPC_URL_STR "rpc/" + --- a.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86sjv7ipmy.fsf>