commit fbd89f73fc7e381a6148891fb891f98144f1ec53
parent 8a7d4978609d7a0d1fcf8ff24d0d2c377724aed3
Author: parazyd <parazyd@dyne.org>
Date: Sat, 9 Dec 2017 14:24:58 +0100
Update port numbers in dir and client
Diffstat:
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/cmd/dam-client/main.go b/cmd/dam-client/main.go
@@ -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
@@ -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)
diff --git a/cmd/dam-dir/main.go b/cmd/dam-dir/main.go
@@ -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"