claudiodangelis/qrcp

Not work on ubuntu22.04 when send files

zzdts opened this issue · 4 comments

zzdts commented

The latest release version and i build the latest bin dose not work when i send file.

When i run "qrcp send xxx" cmd on term, it shows the QR code, but when i scan the QR code ,the qrcp program output "new req..." then program exit , and i get the exit code is zero.

  • My Go version is: go1.18.1 linux/amd64

When i run "qrcp send xxx" cmd on term, it shows the QR code, but when i scan the QR code ,the qrcp program output "new req..." then program exit , and i get the exit code is zero.

In the configuration file located at $HOME/.config/qrcp/config.json you must set the keepAlive parameter to true. Then the server will continue to run until it is stopped manually

Hello @zzdts , thanks for reporting, this seems like a big bug.
Please follow the advice of @KOSTIA2004, and change the keepAlive to true in the configuration file.

Alternatively, you can use the --keep-alive flag on the command line, for example:

qrcp --keep-alive /path/to/file

@zzdts which mobile browser are you using? I want to try to reproduce this issue.
Thanks,
C

I will close this for now as we didn't hear from OP.
Please feel free to re-open it, thanks!