expose call go GetOniondAddr

This commit is contained in:
Dan Ballard 2017-09-04 20:35:11 -07:00
parent 8e84d4761d
commit 3ffb61065f
1 changed files with 4 additions and 1 deletions

View File

@ -16,6 +16,10 @@ func GeneratePrivateKey() (string, error) {
return utils.PrivateKeyToString(privateKey), nil
}
func GetOnionAddress(privateKey string) string {
return utils.GetOnionAddr(privateKey)
}
func TestNet() (ok bool, ex error) {
_, err := http.Get("http://golang.org/")
if err != nil {
@ -30,7 +34,6 @@ func EchoBot(privateKeyData string) {
if err != nil {
log.Fatal("error parsing private key: %v", err)
}
echobot := new(application.RicochetApplication)
log.Println("SetupOnion()...")