Skip to content

Commit 9badd7f

Browse files
committed
multi: remove Tor v2 support
1 parent 9998883 commit 9badd7f

File tree

3 files changed

+1
-15
lines changed

3 files changed

+1
-15
lines changed

aperture.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ func (a *Aperture) Start(errChan chan error) error {
303303
// will only be reached through the onion services, which already
304304
// provide encryption, so running this additional HTTP server should be
305305
// relatively safe.
306-
if a.cfg.Tor.V2 || a.cfg.Tor.V3 {
306+
if a.cfg.Tor.V3 {
307307
torController, err := initTorListener(a.cfg, a.etcdClient)
308308
if err != nil {
309309
return err
@@ -623,16 +623,6 @@ func initTorListener(cfg *Config, etcd *clientv3.Client) (*tor.Controller, error
623623
return nil, err
624624
}
625625

626-
if cfg.Tor.V2 {
627-
onionCfg.Type = tor.V2
628-
addr, err := torController.AddOnion(onionCfg)
629-
if err != nil {
630-
return nil, err
631-
}
632-
633-
log.Infof("Listening over Tor on %v", addr)
634-
}
635-
636626
if cfg.Tor.V3 {
637627
onionCfg.Type = tor.V3
638628
addr, err := torController.AddOnion(onionCfg)

config.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ type TorConfig struct {
7171
Control string `long:"control" description:"The host:port of the Tor instance."`
7272
ListenPort uint16 `long:"listenport" description:"The port we should listen on for client requests over Tor. Note that this port should not be exposed to the outside world, it is only intended to be reached by clients through the onion service."`
7373
VirtualPort uint16 `long:"virtualport" description:"The port through which the onion services created can be reached at."`
74-
V2 bool `long:"v2" description:"Whether we should listen for client requests through a v2 onion service."`
7574
V3 bool `long:"v3" description:"Whether we should listen for client requests through a v3 onion service."`
7675
}
7776

sample-conf.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,6 @@ tor:
143143
# The port through which the onion services to be created can be reached at.
144144
virtualport: 8082
145145

146-
# Whether a v2 onion service should be created to handle requests.
147-
v2: false
148-
149146
# Whether a v3 onion service should be created to handle requests.
150147
v3: false
151148

0 commit comments

Comments
 (0)