tMove ProxyAddr to config.go - tordam - A library for peer discovery inside the Tor network
HTML git clone https://git.parazyd.org/tordam
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 0f4fd27bbb9ae45a51e571f4ca676345c0b7527f
DIR parent 82e1c2d9f4921c221ca43f9c10a5c21072fb2942
HTML Author: parazyd <parazyd@dyne.org>
Date: Tue, 12 Dec 2017 12:40:46 +0100
Move ProxyAddr to config.go
Diffstat:
M pkg/damlib/config.go | 3 +++
M pkg/damlib/net.go | 3 ---
2 files changed, 3 insertions(+), 3 deletions(-)
---
DIR diff --git a/pkg/damlib/config.go b/pkg/damlib/config.go
t@@ -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"
DIR diff --git a/pkg/damlib/net.go b/pkg/damlib/net.go
t@@ -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