Opened 6 years ago

Closed 2 years ago

#6907 closed defect (worksforme)

arm simply assumes it is connecting to a local tor instance (which is not necessarily always the case)

Reported by: cypherpunkx Owned by: atagar
Priority: Medium Milestone:
Component: Core Tor/Nyx Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

It looks like arm simply assumes to connect to a local tor instance:

  • the hostname and kernel version displayed in arm's interface is not from the relay (it is from localhost).

The following warnings are also caused by this assumption:

[ARM_WARN] The torrc differs from what tor's using. You can issue a sighup to reload the torrc values by pressing x.
   - torrc values differ
[ARM_WARN] Unable to read tor's log file: /var/log/tor/log on lines: 2, 3, 4, 6, 7, 8, 9, 10

Maybe arm could try to detect if it is connecting to a local tor instance by comparing the IP from the '-i' parameter with locally configured IP adresses?
An alternative method and probably easier and more reliable: If the pid (gathered via 'GETINFO process/pid') does not match one of the pids returned by 'pidof tor' it is probably not a local tor instance.

What do you think?

Child Tickets

Change History (2)

comment:1 Changed 6 years ago by atagar

Good idea. I'd imagine there's quite a few spots that are missing a check about if it's running on localhost or not. Patches very welcome, but I'm currently pretty busy with stem so it'll be a while before I can get to this.

comment:2 Changed 2 years ago by atagar

Resolution: worksforme
Severity: Normal
Status: newclosed

Cleaning up old tickets. Nyx is undergoing a rewrite, if this is still relevant then feel free to reopen.

Note: See TracTickets for help on using tickets.