RetroShare / RSNewWebUI

30 stars 20 forks source link

Down-/Upload speed is not saved. #10

Closed sehraf closed 4 years ago

sehraf commented 4 years ago

Changing the values under config -> network does not result in anything. The values stay the same. (Also i don't see a corresponding api call to rsConfig/SetMaxDataRates)

rottencandy commented 4 years ago

It looks like mithril is converting the input value to a string, which the API does not accept. I can fix this. The request are being properly sent though.

The client also does not seem to update it's display when the Download/Upload values change. For example, sending a request to change the speeds:

 curl -u test:test http://127.0.0.1:9092/rsConfig/SetMaxDataRates -d '{"downKb": 300, "upKb": 250}'

seems to update the values, which can be confirmed by:

 curl -u test:test http://127.0.0.1:9092/rsConfigGetMaxDataRates

But this change is not reflected in the client UI. CC: @csoler