tordam

A library for peer discovery inside the Tor network
git clone https://git.parazyd.org/tordam
Log | Files | Refs | README | LICENSE

commit 0f4fd27bbb9ae45a51e571f4ca676345c0b7527f
parent 82e1c2d9f4921c221ca43f9c10a5c21072fb2942
Author: parazyd <parazyd@dyne.org>
Date:   Tue, 12 Dec 2017 12:40:46 +0100

Move ProxyAddr to config.go

Diffstat:
Mpkg/damlib/config.go | 3+++
Mpkg/damlib/net.go | 3---
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pkg/damlib/config.go b/pkg/damlib/config.go @@ -16,3 +16,6 @@ const PostMsg = "I am a DAM node!" // WelcomeMsg holds the message we return when welcoming a node. const WelcomeMsg = "Welcome to the DAM network!" + +// ProxyAddr is the address of our Tor SOCKS port. +const ProxyAddr = "127.0.0.1:9050" diff --git a/pkg/damlib/net.go b/pkg/damlib/net.go @@ -12,9 +12,6 @@ import ( "golang.org/x/net/proxy" ) -// ProxyAddr is the address of our Tor SOCKS port. -const ProxyAddr = "127.0.0.1:9050" - // HTTPPost sends an HTTP POST request to the given host. // Takes the host to request and the data to post as arguments. // If the host ends with ".onion", it will enable the request to be performed