Don't use fileName at all when uploading

main
diff 2021-03-24 16:51:34 +00:00
parent c1edf992f9
commit 9d5d6acbfc
1 changed files with 3 additions and 0 deletions

View File

@ -114,6 +114,9 @@ func main() {
} }
url := fmt.Sprintf("http://%s:%v/%s", ip, conf.Port, conf.FileName) url := fmt.Sprintf("http://%s:%v/%s", ip, conf.Port, conf.FileName)
if conf.Uploading {
url = fmt.Sprintf("http://%s:%v", ip, conf.Port)
}
if !conf.HideQR { if !conf.HideQR {
qrterminal.GenerateHalfBlock(url, qrterminal.M, os.Stdout) qrterminal.GenerateHalfBlock(url, qrterminal.M, os.Stdout)
} }