aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar steering72532026-04-11 00:37:50 +0000
committerGravatar steering72532026-04-11 00:37:50 +0000
commit3a8ad7b73aa5fac50f9fcfc01331b00f532609c6 (patch)
treef5e3538219e9401ae710ed09d608eb257815fcd4
parentadd stat command (diff)
add more help to addpeer
-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>