--connect-as to specify client pubkey when using --connect to bunker

This commit is contained in:
fiatjaf
2024-02-06 12:47:46 -03:00
parent b7a7e0504f
commit 6626001dd2
3 changed files with 16 additions and 1 deletions

5
req.go
View File

@@ -117,6 +117,11 @@ example:
Name: "connect",
Usage: "sign AUTH using NIP-46, expects a bunker://... URL",
},
&cli.StringFlag{
Name: "connect-as",
Usage: "private key to when communicating with the bunker given on --connect",
DefaultText: "a random key",
},
},
ArgsUsage: "[relay...]",
Action: func(c *cli.Context) error {