Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tor port is shown as 0. #1939

Closed
rustyrussell opened this issue Sep 14, 2018 · 3 comments
Closed

Tor port is shown as 0. #1939

rustyrussell opened this issue Sep 14, 2018 · 3 comments

Comments

@rustyrussell
Copy link
Contributor

$ lightning-cli getinfo
{
  "id": "024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605", 
  "alias": "BLUEIRON-v0.6.1rc2-8-g10167ee", 
  "color": "024b9a", 
  "address": [
    {
      "type": "ipv4", 
      "address": "128.199.202.168", 
      "port": 9735
    }, 
    {
      "type": "ipv6", 
      "address": "2400:6180:0:d0::5cd2:a001", 
      "port": 9735
    }, 
    {
      "type": "torv2", 
      "address": "z4juqu4gv525fquo.onion", 
      "port": 0
    }
  ], 
  "binding": [
    {
      "type": "ipv6", 
      "address": "::", 
      "port": 9735
    }, 
    {
      "type": "ipv4", 
      "address": "0.0.0.0", 
      "port": 9735
    }
  ], 
  "version": "v0.6.1rc2-8-g10167ee", 
  "blockheight": 541408, 
  "network": "bitcoin"
}
@rustyrussell
Copy link
Contributor Author

$ cat .lightning/config 
network=bitcoin
log-file=/home/rusty/logs/lightningd.log
log-level=debug
addr=
addr=autotor:127.0.0.1:9051

@Saibato
Copy link
Contributor

Saibato commented Sep 14, 2018

@rustyrussell when we/you dig in to this, keep in mind that V3 autoservice can also be enabled now,
as the latest tor versions support it.

cheers

@Saibato
Copy link
Contributor

Saibato commented Sep 14, 2018

when in tor/autoservice.c port is set from 0 to DEFAULT_PORT this fixes the 0 json display
as it get's its value from struct wireaddr

Saibato added a commit to Saibato/lightning that referenced this issue Sep 15, 2018
fixes also ElementsProject#1939

Signed-off-by: Saibato <Saibato.naga@pm.me>
Saibato added a commit to Saibato/lightning that referenced this issue Sep 15, 2018
fixes also ElementsProject#1939

Signed-off-by: Saibato <Saibato.naga@pm.me>
Saibato added a commit to Saibato/lightning that referenced this issue Sep 15, 2018
fixes also ElementsProject#1939

Signed-off-by: Saibato <Saibato.naga@pm.me>
cdecker pushed a commit that referenced this issue Sep 19, 2018
fixes also #1939

Signed-off-by: Saibato <Saibato.naga@pm.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants