hyperboria / bugs

Peer-to-peer IPv6 networking, secure and near-zero-conf.
154 stars 17 forks source link

admin-api: ETHInterface_beacon() issue #174

Open pruflyos opened 6 years ago

pruflyos commented 6 years ago

The documentation says that you can call admin-api function ETHInterface_beacon() with just one parameter, to get the current state. However, this currently doesn't work as expected and always returns:

$ ./contrib/python/cexec 'ETHInterface_beacon(0)'
{'txid': 'Z7KHE7SZ5R', 'error': 'invalid state'}

Setting the state doesn't work either:

$ ./contrib/python/cexec 'ETHInterface_beacon(0, 2)'
{'txid': '1B7RXJEH3N', 'error': 'invalid state'}
pruflyos commented 6 years ago

Here's the respective config from cjdroute.conf:

"ETHInterface": [
    {
      "bind": "all",
      "beacon": 2,
      "connectTo": {}
    }
  ]