diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-02-05 16:11:49 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-02-08 14:57:34 +0000 |
commit | 8a0e98bab8a4bccd11adc0e2c838910ed1b6d794 (patch) | |
tree | 09e6cab043b303a26829521914d8b5d1e15df846 /other/fun/bootstrap_node_info.py | |
parent | 36ba80aacb2a582854f0e5e3ed0d69ca63db52ea (diff) |
Fix LAN discovery on FreeBSD.
Also, add an auto-test for bootstrap and for LAN discovery.
Bootstrap is never tested otherwise, and LAN discovery is a prerequisite
for everything else. Having these two tests lets us rule out or identify
LAN discovery as a possible cause for test failures.
Diffstat (limited to 'other/fun/bootstrap_node_info.py')
-rw-r--r-- | other/fun/bootstrap_node_info.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/other/fun/bootstrap_node_info.py b/other/fun/bootstrap_node_info.py index 17349334..ffda41e3 100644 --- a/other/fun/bootstrap_node_info.py +++ b/other/fun/bootstrap_node_info.py | |||
@@ -32,7 +32,7 @@ def printHelp(): | |||
32 | print("Usage: " + sys.argv[0] + " <ipv4|ipv6> <ip/hostname> <port>") | 32 | print("Usage: " + sys.argv[0] + " <ipv4|ipv6> <ip/hostname> <port>") |
33 | print(" Example: " + sys.argv[0] + " ipv4 192.210.149.121 33445") | 33 | print(" Example: " + sys.argv[0] + " ipv4 192.210.149.121 33445") |
34 | print(" Example: " + sys.argv[0] + " ipv4 23.226.230.47 33445") | 34 | print(" Example: " + sys.argv[0] + " ipv4 23.226.230.47 33445") |
35 | print(" Example: " + sys.argv[0] + " ipv4 biribiri.org 33445") | 35 | print(" Example: " + sys.argv[0] + " ipv4 node.tox.biribiri.org 33445") |
36 | print(" Example: " + sys.argv[0] + " ipv4 cerberus.zodiaclabs.org 33445") | 36 | print(" Example: " + sys.argv[0] + " ipv4 cerberus.zodiaclabs.org 33445") |
37 | print(" Example: " + sys.argv[0] + " ipv6 2604:180:1::3ded:b280 33445") | 37 | print(" Example: " + sys.argv[0] + " ipv6 2604:180:1::3ded:b280 33445") |
38 | print("") | 38 | print("") |
@@ -95,4 +95,4 @@ version = int.from_bytes(data[PACKET_ID_LENGTH:PACKET_ID_LENGTH + VERSION_LENGTH | |||
95 | motd = data[PACKET_ID_LENGTH + VERSION_LENGTH:].decode("utf-8") | 95 | motd = data[PACKET_ID_LENGTH + VERSION_LENGTH:].decode("utf-8") |
96 | print("Version: " + str(version)) | 96 | print("Version: " + str(version)) |
97 | print("MOTD: " + motd) | 97 | print("MOTD: " + motd) |
98 | sys.exit(0) \ No newline at end of file | 98 | sys.exit(0) |