diff --git a/aperture.go b/aperture.go index 5b29973..567a50a 100644 --- a/aperture.go +++ b/aperture.go @@ -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