While testing banning and unbanning peers, I noticed that the feature to view ASN via bgpview.io to banned hosts list is missing. The shodan option is there.
While testing banning and unbanning peers, I noticed that the feature to view ASN via bgpview.io to banned hosts list is missing. The shodan option is there.
I noticed this in testing too. I tried adding code for it similar to peers table but it is not supported in listbanned RPC. Each table has its own model and uses a different RPC. getpeerinfo returns "mapped_as", which is also not documented in RPC docs. listbanned would probably need to return that for this to work. Right now it'll just use 0 and not link to anything.
I noticed this in testing too. I tried adding code for it similar to peers table but it is not supported in `listbanned` RPC. Each table has its own model and uses a different RPC. `getpeerinfo` returns "mapped_as", which is also not documented in RPC docs. `listbanned` would probably need to return that for this to work. Right now it'll just use 0 and not link to anything.
I will work on making listbanned return this data. Our internals forked from a version of BTC core that didn't know about ASN's, and then when I added ASN support, some RPC's didn't learn about it, such as listbanned
I will work on making listbanned return this data. Our internals forked from a version of BTC core that didn't know about ASN's, and then when I added ASN support, some RPC's didn't learn about it, such as `listbanned`
Code to handle this is in latest commit but will use 0 for now: https://git.hush.is/hush/SilentDragon/src/commit/9c1db5ff8bc2f08a112fa55d8e4e7129cec0b14d/src/bannedpeerstablemodel.cpp#L63
While testing banning and unbanning peers, I noticed that the feature to view ASN via bgpview.io to banned hosts list is missing. The shodan option is there.
yes, good suggestion
I noticed this in testing too. I tried adding code for it similar to peers table but it is not supported in
listbanned
RPC. Each table has its own model and uses a different RPC.getpeerinfo
returns "mapped_as", which is also not documented in RPC docs.listbanned
would probably need to return that for this to work. Right now it'll just use 0 and not link to anything.I will work on making listbanned return this data. Our internals forked from a version of BTC core that didn't know about ASN's, and then when I added ASN support, some RPC's didn't learn about it, such as
listbanned
Code to handle this is in latest commit but will use 0 for now:
9c1db5ff8b/src/bannedpeerstablemodel.cpp (L63)
So to clarify, SD knows how to do this now but hushd needs to give it the proper data, instead of 0