Otto Suess
6 years ago
No known key found for this signature in database
GPG Key ID: F7EFC44C2C240A11
2 changed files with
20 additions and
27 deletions
-
lndconnect.go
-
lndconnect_test.go
|
|
@ -71,7 +71,6 @@ func displayLink(loadedConfig *config) { |
|
|
|
u := url.URL{Scheme: "lndconnect", Host: ipString} |
|
|
|
q := u.Query() |
|
|
|
|
|
|
|
|
|
|
|
// cert
|
|
|
|
if !loadedConfig.LndConnect.NoCert { |
|
|
|
certBytes, err := ioutil.ReadFile(loadedConfig.TLSCertPath) |
|
|
@ -109,7 +108,6 @@ func displayLink(loadedConfig *config) { |
|
|
|
|
|
|
|
q.Add("macaroon", macaroonB64) |
|
|
|
|
|
|
|
|
|
|
|
// custom query
|
|
|
|
for _, s := range loadedConfig.LndConnect.Query { |
|
|
|
queryParts := strings.Split(s, "=") |
|
|
@ -124,7 +122,6 @@ func displayLink(loadedConfig *config) { |
|
|
|
|
|
|
|
u.RawQuery = q.Encode() |
|
|
|
|
|
|
|
|
|
|
|
// generate link / QR Code
|
|
|
|
if loadedConfig.LndConnect.Url { |
|
|
|
fmt.Println(u.String()) |
|
|
|
|
|
@ -1,9 +1,5 @@ |
|
|
|
package main |
|
|
|
|
|
|
|
import ( |
|
|
|
// "testing"
|
|
|
|
) |
|
|
|
|
|
|
|
func ExampleLocalhost() { |
|
|
|
c := &config{ |
|
|
|
TLSCertPath: "testdata/tls.cert", |
|
|
|