From f0a0b06f29b41f923161093588f444cb9e593ec8 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Wed, 7 Aug 2013 21:49:10 -0500 Subject: [PATCH] Move sample proxy config near top of net settings. --- sample-btcd.conf | 9 +++++++++ server.go | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/sample-btcd.conf b/sample-btcd.conf index 1152bdeb..741e6e2f 100644 --- a/sample-btcd.conf +++ b/sample-btcd.conf @@ -7,6 +7,15 @@ ; Use testnet. ; testnet=1 +; Connect via a SOCKS5 proxy. +; proxy=127.0.0.1:9050 +; proxyuser= +; proxypass= + +; The SOCKS5 proxy above is Tor (https://www.torproject.org). +; tor=1 + + ; Add as many peers to connect to as desired. Separate each peer with a space. ; You may specify each IP address with or without a port. The default port will ; be added automatically if one is not specified here. diff --git a/server.go b/server.go index 3481904a..576974e8 100644 --- a/server.go +++ b/server.go @@ -61,7 +61,6 @@ type server struct { // handleAddPeerMsg deals with adding new peers. It is invoked from the // peerHandler goroutine. func (s *server) handleAddPeerMsg(peers *list.List, banned map[string]time.Time, p *peer) { - // Ignore new peers if we're shutting down. direction := directionString(p.inbound) if s.shutdown {