Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Remove trimming spaces from hostname #253

Open
Psycoguana opened this issue Nov 23, 2020 · 0 comments
Open

Remove trimming spaces from hostname #253

Psycoguana opened this issue Nov 23, 2020 · 0 comments

Comments

@Psycoguana
Copy link

Hey, first of all, great app, thanks for the amazing development!

I was having connection problems, and after firing up the android logcat I saw this error
java.net.UnknownHostException: Invalid host: http://192.168.0.180 :25257/api/v2/torrents/info?filter=all

Looks like my keyboard added a space to the end of the host, it would be really cool if you could update the app to remove trailing spaces.

I tried adding a .trim() here

editor.putString("hostname" + currentServerValue, hostname.getText().toString());

But it's not quite working, I think a trim might also be needed in this function:

public void getQBittorrentServerValues(String value) {

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant