Fix accept_tor query param.

The query param for "accept_tor" is wrong.

Morale of the story: Never code when you're drunk
This commit is contained in:
Cristian Ditaputratama 2024-05-06 22:53:23 +07:00
parent e873d8f84a
commit 3b0420d950
Signed by: ditatompel
GPG key ID: 31D3D06D77950979

View file

@ -73,8 +73,8 @@ func runProbe() {
func (p *proberClient) getJob() (repo.MoneroNode, error) {
queryParams := ""
if p.config.ApiKey != "" {
queryParams = "?api_key=" + p.config.ApiKey
if p.config.AcceptTor {
queryParams = "?accept_tor=1"
}
node := repo.MoneroNode{}