summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xautopeer_shell.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/autopeer_shell.py b/autopeer_shell.py
index 8880ec6..4fe30b4 100755
--- a/autopeer_shell.py
+++ b/autopeer_shell.py
@@ -90,6 +90,16 @@ class AutopeerShell(cmd.Cmd):
print(f'- {row[0]} ({row[1]} {row[2]})')
print()
+ def help_addpeer(self):
+ print(self.do_addpeer.__doc__)
+ me = _get_my_info(SELECTED_ASN)
+ print(f'''
+My endpoint: {me.endpoint}:{me.port}
+My ASN: {me.asn}
+My Wireguard Public Key: {me.pubkey}
+My Tunnel IPv6LL: {me.ipll}
+ ''')
+
@parse(5)
def do_addpeer(self, name, pubkey, endpoint, port, ipll):
'''<name> <wg pubkey> <wg address> <wg port> <ipv6 link local>