Don't use fileName at all when uploading
parent
c1edf992f9
commit
9d5d6acbfc
3
main.go
3
main.go
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue