Skip to content

Commit

Permalink
Change to base64-URL encoding and remove xdg-open
Browse files Browse the repository at this point in the history
URL version of base64 encoding should be used instead, therefore appropriate conversion is applied in the command. Further, `xdg-open` isn't cross-platform, so it was removed.
  • Loading branch information
Kixunil authored Jun 16, 2019
1 parent 845c8b9 commit 92795c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lnd_connect_uri.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var url = 'lndconnect://' + ip.address() + ':10009?cert=' + cert + '&macaroon='
This is useful when one doesn't want to bring dependencies.

```
echo 'lndconnect://example.com?cert='"`grep -v 'CERTIFICATE' tls.cert`"'&macaroon='"`base64 admin.macaroon`" | tr -d '\n' | qrencode -o /tmp/out.png && xdg-open /tmp/out.png
echo 'lndconnect://example.com?cert='"`grep -v 'CERTIFICATE' tls.cert | tr -d '=' | tr '/+' '_-'`"'&macaroon='"`base64 admin.macaroon | tr -d '=' | tr '/+' '_-'`" | tr -d '\n' | qrencode -o /tmp/out.png
```

## Example:
Expand Down

0 comments on commit 92795c0

Please sign in to comment.