tHandle HTTP 400 in dam-client. - 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 c3cd139062b5450dbf4e37bf51415fb3ba75a590
DIR parent 0f4fd27bbb9ae45a51e571f4ca676345c0b7527f
HTML Author: parazyd <parazyd@dyne.org>
Date: Tue, 12 Dec 2017 12:45:56 +0100
Handle HTTP 400 in dam-client.
We now normally return a HTTP 400 instead of a 500 (even if there is an
internal error), so we handle that one now.
Diffstat:
M cmd/dam-client/main.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/cmd/dam-client/main.go b/cmd/dam-client/main.go
t@@ -45,7 +45,7 @@ func announce(dir string, vals map[string]string, privkey *rsa.PrivateKey) (bool
return false, err
}
- if resp.StatusCode == 500 {
+ if resp.StatusCode == 400 {
log.Printf("%s: Fail. Reply: %s\n", dir, m.Secret)
return false, nil
}