TorProvider now monitors tor process status and can graceully handle it going away and reappearing, or relaunch it #39

Closed
dan wants to merge 3 commits from dan:tor-retry into master
1 changed files with 1 additions and 2 deletions
Showing only changes of commit 6da5095443 - Show all commits

View File

@ -73,8 +73,7 @@ func PrivateKeyToString(privateKey *rsa.PrivateKey) string {
// return an onion address from a private key
func GetOnionAddress(privateKey *rsa.PrivateKey) (string, error) {
pubKey := rsa.PublicKey(privateKey.PublicKey)
addr, err := pkcs1.OnionAddr(&pubKey)
addr, err := pkcs1.OnionAddr(&privateKey.PublicKey)
if err != nil {
return "", err
} else if addr == "" {