From 3a8ad7b73aa5fac50f9fcfc01331b00f532609c6 Mon Sep 17 00:00:00 2001 From: steering7253 Date: Sat, 11 Apr 2026 00:37:50 +0000 Subject: add more help to addpeer --- autopeer_shell.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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): ''' -- cgit v1.3.1-10-gc9f91