Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
Set GeoIPFile and GeoIPv6File to get rid of warnings.
Browse files Browse the repository at this point in the history
Missing these options create warnings on Windows for some reason when
trying to generate the control password hash.
  • Loading branch information
Casey Marshall committed Nov 19, 2017
1 parent c24ed86 commit 4e304e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,17 @@ Log notice stdout
return nil, errors.Wrapf(err, "failed to create torrc")
}
}
geoIPFile := filepath.Join(cfg.Dir, "tor", "geoip")
geoIPv6File := filepath.Join(cfg.Dir, "tor", "geoip6")
cmd := exec.Command(cfg.Node.Agent.TorBinaryPath,
"-f", torrcPath,
"--Log", "notice stdout",
"--SocksPort", cfg.Node.Agent.SocksAddr,
"--ControlPort", cfg.Node.Agent.ControlAddr,
"--DataDirectory", dataDir,
"--HashedControlPassword", controlHash,
"--DataDirectory", dataDir,
"--GeoIPFile", geoIPFile,
"--GeoIPv6File", geoIPv6File,
)
cmd.Dir = dataDir
cmd.Stdout = os.Stdout
Expand Down

0 comments on commit 4e304e3

Please sign in to comment.