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 {
|
||||
scheme = "https"
|
||||
}
|
||||
url := fmt.Sprintf("%s://%s/#%s\n", scheme, domain, secret)
|
||||
readyMsg := "ready: " + url
|
||||
url := fmt.Sprintf("%s://%s/#%s", scheme, domain, secret)
|
||||
readyMsg := "ready: " + url + "\n"
|
||||
qrCode, _ := GenerateQRCode(url, TerminalSupportsColor(os.Stderr.Fd()))
|
||||
readyMsg += qrCode
|
||||
if !tls {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue