bunker: fix printing bunker uri.

This commit is contained in:
fiatjaf 2024-08-23 16:17:17 -03:00
parent b3ef2c1289
commit cf1694704e

View File

@ -84,8 +84,8 @@ var bunker = &cli.Command{
return err return err
} }
npub, _ := nip19.EncodePublicKey(pubkey) npub, _ := nip19.EncodePublicKey(pubkey)
bold := color.New(color.Bold).Sprintf bold := color.New(color.Bold).Sprint
italic := color.New(color.Italic).Sprintf italic := color.New(color.Italic).Sprint
// this function will be called every now and then // this function will be called every now and then
printBunkerInfo := func() { printBunkerInfo := func() {
@ -131,7 +131,7 @@ var bunker = &cli.Command{
) )
log("listening at %v:\n pubkey: %s \n npub: %s%s%s\n to restart: %s\n bunker: %s\n\n", log("listening at %v:\n pubkey: %s \n npub: %s%s%s\n to restart: %s\n bunker: %s\n\n",
bold("%v", relayURLs), bold(relayURLs),
bold(pubkey), bold(pubkey),
bold(npub), bold(npub),
authorizedKeysStr, authorizedKeysStr,