mirror of
https://github.com/lightninglabs/aperture.git
synced 2026-01-31 23:24:36 +01:00
Merge pull request #37 from wpaulino/tor-nil-config
aperture: check tor config nil-ness before access
This commit is contained in:
@@ -158,7 +158,7 @@ func start() error {
|
||||
// will only be reached through the onion services, which already
|
||||
// provide encryption, so running this additional HTTP server should be
|
||||
// relatively safe.
|
||||
if cfg.Tor.V2 || cfg.Tor.V3 {
|
||||
if cfg.Tor != nil && (cfg.Tor.V2 || cfg.Tor.V3) {
|
||||
torController, err := initTorListener(cfg, etcdClient)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user