mirror of
https://github.com/lalanza808/monero.fail.git
synced 2025-08-14 00:45:42 -04:00
i2p integration (#26)
* working on i2p integration * finishing i2p setup * fix comment * include hidden txt for tor
This commit is contained in:
parent
8fa675c273
commit
181b448379
13 changed files with 93 additions and 4 deletions
|
@ -19,6 +19,7 @@ def index():
|
|||
nettype = request.args.get("network", "mainnet")
|
||||
crypto = request.args.get("chain", "monero")
|
||||
onion = request.args.get("onion", False)
|
||||
i2p = request.args.get("i2p", False)
|
||||
show_all = "true" == request.args.get("all", "false")
|
||||
web_compatible = request.args.get("cors", False)
|
||||
highest_block = get_highest_block(nettype, crypto)
|
||||
|
@ -42,6 +43,8 @@ def index():
|
|||
nodes = nodes.order_by(Node.datetime_entered.desc())
|
||||
if onion:
|
||||
nodes = nodes.where(Node.is_tor == True)
|
||||
if i2p:
|
||||
nodes = nodes.where(Node.is_i2p == True)
|
||||
|
||||
nodes = [n for n in nodes]
|
||||
shuffle(nodes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue