Remove newline from QR code
This commit is contained in:
parent
9806aa26e1
commit
f741196640
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
|
@ -234,8 +234,8 @@ func main() {
|
||||||
if tls {
|
if tls {
|
||||||
scheme = "https"
|
scheme = "https"
|
||||||
}
|
}
|
||||||
url := fmt.Sprintf("%s://%s/#%s\n", scheme, domain, secret)
|
url := fmt.Sprintf("%s://%s/#%s", scheme, domain, secret)
|
||||||
readyMsg := "ready: " + url
|
readyMsg := "ready: " + url + "\n"
|
||||||
qrCode, _ := GenerateQRCode(url, TerminalSupportsColor(os.Stderr.Fd()))
|
qrCode, _ := GenerateQRCode(url, TerminalSupportsColor(os.Stderr.Fd()))
|
||||||
readyMsg += qrCode
|
readyMsg += qrCode
|
||||||
if !tls {
|
if !tls {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue