rustdesk / rustdesk-server-pro

Some scripts for RustDesk Server Pro are hosted here.
133 stars 63 forks source link

Adding -- to the end of the license config string, makes the license unrecognized #204

Closed AlvaroNieto closed 6 months ago

AlvaroNieto commented 7 months ago

A per stated in https://rustdesk.com/docs/en/self-host/client-configuration/#add----to-the-name

rustdesk-licensed--{encrypted string}--.exe

The license doesn't get applied following that instructions. If I remove the -- from the end, the license works. Tested in 1.2.3 and 1.2.3-1, Windows.

In the docs, there are 2 diferent strings (the first and generated by the server, and the second, written in the docs), tested both:

rustdesk-licensed-{encrypted string}--.exe rustdesk-licensed--{encrypted string}--.exe

Using the host and key method with the comma works fine.

rustdesk commented 7 months ago

Thank you. I will correct the doc.

rustdesk commented 7 months ago

Per the source code, the doc is wrong.

https://github.com/rustdesk/rustdesk/blob/09325fadaff53b82ae6f2e5e66d9e0a6cf2e3104/src/license.rs#L87

-- works if there is no -licensed-