tUpdate port numbers in dir and client - tordam - A library for peer discovery inside the Tor network (HTM) git clone https://git.parazyd.org/tordam (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit fbd89f73fc7e381a6148891fb891f98144f1ec53 (DIR) parent 8a7d4978609d7a0d1fcf8ff24d0d2c377724aed3 (HTM) Author: parazyd <parazyd@dyne.org> Date: Sat, 9 Dec 2017 14:24:58 +0100 Update port numbers in dir and client Diffstat: M cmd/dam-client/main.go | 6 ++++-- M cmd/dam-dir/main.go | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) --- (DIR) diff --git a/cmd/dam-client/main.go b/cmd/dam-client/main.go t@@ -92,7 +92,8 @@ func main() { log.Println("Announcing keypair for:", vals["address"]) log.Println("Sending request") - resp, err := lib.HTTPPost("http://localhost:8080/announce", jsonVal) + //resp, err := lib.HTTPPost("http://localhost:49371/announce", jsonVal) + resp, err := lib.HTTPPost("http://qvhgzxjkdchj2jl5.onion/announce", jsonVal) lib.CheckError(err) // Parse server's reply t@@ -121,7 +122,8 @@ func main() { lib.CheckError(err) log.Println("Sending back decrypted secret.") - resp, err := lib.HTTPPost("http://localhost:8080/announce", jsonVal) + //resp, err := lib.HTTPPost("http://localhost:49371/announce", jsonVal) + resp, err := lib.HTTPPost("http://qvhgzxjkdchj2jl5.onion/announce", jsonVal) lib.CheckError(err) decoder = json.NewDecoder(resp.Body) err = decoder.Decode(&m) (DIR) diff --git a/cmd/dam-dir/main.go b/cmd/dam-dir/main.go t@@ -15,7 +15,7 @@ import ( ) // ListenAddress controls where our HTTP API daemon is listening. -const ListenAddress = "127.0.0.1:8080" +const ListenAddress = "127.0.0.1:49371" // RedisAddress points us to our Redis instance. const RedisAddress = "127.0.0.1:6379"