Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web UI tries to bind to IP "42" by default #9498

Closed
adduxa opened this issue Sep 14, 2018 · 1 comment
Closed

Web UI tries to bind to IP "42" by default #9498

adduxa opened this issue Sep 14, 2018 · 1 comment

Comments

@adduxa
Copy link

adduxa commented Sep 14, 2018

qBittorrent version and Operating System

qBittorrent v4.1.2
FreeBSD 11.2-RELEASE-p3 #4 r338638
Compiled from ports with nox

If on linux, libtorrent and Qt version

libtorrent-rasterbar: 1.1.9
qt5-core: 5.11.1

What is the problem

Error "Web UI: Unable to bind to IP: 42, port: 8080. Reason: The address is not available" at start with clean install without configs.

What is the expected behavior

Bind to 0.0.0.0, instead of 42

Steps to reproduce

  1. Compile
  2. Launch qbittorrent-nox

Extra info

If we look at https://github.com/qbittorrent/qBittorrent/blob/master/src/webui/webui.cpp#L96-L97, we can see "*" (asterisk) used as a default bind IP. And asterisk's ASCII code is 42.
I think there's automatic type detection problem somewhere.
Also, if we look at documentation, QHostAddress::Any is enum and not QHostAddress or string.
Shouldn't code above

            const auto address = (serverAddressString == "*" || serverAddressString.isEmpty())
                ? QHostAddress::Any : QHostAddress(serverAddressString);

be like

            const auto address = (serverAddressString == "*" || serverAddressString.isEmpty())
                ? QHostAddress(QHostAddress::Any) : QHostAddress(serverAddressString);

instead?

Workaround

Add

[Preferences]
WebUI\Address=*

to .config/qBittorrent/qBittorrent.conf

@Chocobo1
Copy link
Member

Thanks for the report!
Already fixed in #9365, please wait for the next release (v4.1.3) or compile using our master branch.

@qbittorrent qbittorrent locked and limited conversation to collaborators Feb 28, 2021
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

2 participants