Commit graph

5 commits

Author SHA1 Message Date
Ciro S. Costa 45b42a1fae source formatting
Signed-off-by: Ciro S. Costa <utxobr@protonmail.com>
2021-07-18 17:22:57 -04:00
Ciro S. Costa 2136abc313 fix non-verbose auth-based requests
it turns out that the server implementation relies on the clients doing
the whole auth flow over the same connection, but `go` will only let you
reuse a given tcp connection if you've completely drained the response's
body (which `--verbose` ends up doing, despite copying everythign back
to a new reader).

Signed-off-by: Ciro S. Costa <utxobr@protonmail.com>
2021-07-18 16:46:40 -04:00
Ciro S. Costa 7012486a16 source formatting
Signed-off-by: Ciro S. Costa <utxobr@protonmail.com>
2021-07-18 15:56:51 -04:00
Ciro S. Costa 9536d945b0 pkg/http: remove non-monero auth details
Signed-off-by: Ciro S. Costa <utxobr@protonmail.com>
2021-07-18 08:38:58 -04:00
Ciro S. Costa e78b200d02 add support for rpc auth
example:

	monerod --rpc-login foo:foo  (...)
	monero daemon -u foo -p foo get-version

new flags
	  -p, --password string    password to supply for rpc auth
	  -u, --username string    name of the user to use during rpc auth

Signed-off-by: Ciro S. Costa <utxobr@protonmail.com>
2021-07-18 08:27:44 -04:00