torsvc: Added new module to house Tor functions

This commit adds a new module named 'torsvc' which houses all Tor
functionality in an attempt to isolate it and make it reusable in
other projecs. Some additional tweaks were made to config.go and
to the bootstrapper.
This commit is contained in:
nsa
2017-10-24 22:02:29 -04:00
committed by Olaoluwa Osuntokun
parent e2142c778f
commit e132ad8433
5 changed files with 205 additions and 154 deletions

View File

@@ -605,7 +605,8 @@ func initNetworkBootstrappers(s *server) ([]discovery.NetworkPeerBootstrapper, e
dnsBootStrapper, err := discovery.NewDNSSeedBootstrapper(
dnsSeeds,
[]interface{}{lndLookup, lndLookupSRV},
lndLookup,
lndLookupSRV,
)
if err != nil {
return nil, err