Using HTTP Proxy: Retrieved Host is IP Address instead of Domain in HTTPS Tracker URL #15545

Open
opened 2026-02-22 02:14:12 -05:00 by deekerman · 9 comments
Owner

Originally created by @bearx3f on GitHub (Mar 5, 2024).

qBittorrent & operating system versions

qBittorrent: 4.6.3 x64
Operating system: Ubuntu 22.04.3 LTS
Qt: 6.6.2
libtorrent-rasterbar: 2.0.10.0

What is the problem?

I'm monitoring announcement request & response but does not works on https tracker because qbittorrent already resolve hostname

I already try my hypothesis with curl by curl --proxy http://127.0.0.1:8080 https://www.google.com and It's works (i can see request body and response body as expected)

update:

My proxy server got IP Address from Host Header instead of Domain Name then proxy server has a problem to sign https connect with out domain name

Steps to reproduce

  1. configure http proxy
  2. download torrent with https tracker

Additional context

No response

Log(s) & preferences file(s)

image

updated

Originally created by @bearx3f on GitHub (Mar 5, 2024). ### qBittorrent & operating system versions qBittorrent: 4.6.3 x64 Operating system: Ubuntu 22.04.3 LTS Qt: 6.6.2 libtorrent-rasterbar: 2.0.10.0 ### What is the problem? I'm monitoring announcement request & response but does not works on https tracker because qbittorrent already resolve hostname I already try my hypothesis with curl by `curl --proxy http://127.0.0.1:8080 https://www.google.com` and It's works (i can see request body and response body as expected) update: My proxy server got IP Address from Host Header instead of Domain Name then proxy server has a problem to sign https connect with out domain name ### Steps to reproduce 1. configure http proxy 2. download torrent with https tracker ### Additional context _No response_ ### Log(s) & preferences file(s) ![image](https://github.com/qbittorrent/qBittorrent/assets/9717561/1bfa76eb-2564-4189-aaf5-5c6f95a9acf2) updated
Author
Owner

@glassez commented on GitHub (Mar 14, 2024):

I'm monitoring announcement request & response but does not works on https tracker because qbittorrent already resolve hostname

Could you explain it in such a way that someone besides yourself understands the essence of the problem?

@glassez commented on GitHub (Mar 14, 2024): > I'm monitoring announcement request & response but does not works on https tracker because qbittorrent already resolve hostname Could you explain it in such a way that someone besides yourself understands the essence of the problem?
Author
Owner

@bearx3f commented on GitHub (Mar 14, 2024):

Sorry for too confuse information.

My proxy server expected Host from HTTPS Header to be hostname form Tracker URL but got IP Address instead

@bearx3f commented on GitHub (Mar 14, 2024): Sorry for too confuse information. My proxy server expected Host from HTTPS Header to be hostname form Tracker URL but got IP Address instead
Author
Owner

@glassez commented on GitHub (Mar 14, 2024):

Sorry for too confuse information.

My proxy server expected Host from HTTPS Header to be hostname form Tracker URL but got IP Address instead

What are your qBittorrent proxy settings? (You can provide a screenshot of corresponding part of Preferences dialog.)

@glassez commented on GitHub (Mar 14, 2024): > Sorry for too confuse information. > > My proxy server expected Host from HTTPS Header to be hostname form Tracker URL but got IP Address instead What are your qBittorrent proxy settings? (You can provide a screenshot of corresponding part of Preferences dialog.)
Author
Owner

@bearx3f commented on GitHub (Mar 14, 2024):

I already update the original descritpion

@bearx3f commented on GitHub (Mar 14, 2024): I already update the original descritpion
Author
Owner

@glassez commented on GitHub (Mar 15, 2024):

Maybe the problem is not exactly using a Proxy? Maybe libtorrent always uses an IP address instead of a domain name in Host header?

Could you enable Proxy in qBittorrent settings for everything else and see how other qBittorrent subsystems send their requests (for example, when it downloads tracker icons)?

@glassez commented on GitHub (Mar 15, 2024): Maybe the problem is not exactly using a Proxy? Maybe `libtorrent` always uses an IP address instead of a domain name in Host header? Could you enable Proxy in qBittorrent settings for everything else and see how other qBittorrent subsystems send their requests (for example, when it downloads tracker icons)?
Author
Owner

@bearx3f commented on GitHub (Mar 15, 2024):

Unfortunately my tracker does not have an icons, or RSS subscription

FYI when announce http tracker Proxy Server got domain name as expected

@bearx3f commented on GitHub (Mar 15, 2024): Unfortunately my tracker does not have an icons, or RSS subscription FYI when announce http tracker Proxy Server got domain name as expected
Author
Owner

@glassez commented on GitHub (Mar 15, 2024):

Unfortunately my tracker does not have an icons

But qBittorrent still tries to download the icons of all trackers, if this is not disabled.

@glassez commented on GitHub (Mar 15, 2024): > Unfortunately my tracker does not have an icons But qBittorrent still tries to download the icons of all trackers, if this is not disabled.
Author
Owner

@glassez commented on GitHub (Mar 15, 2024):

FYI when announce http tracker Proxy Server got domain name as expected

This is libtorrent's area of responsibility, so you'd better go there on this matter.

@glassez commented on GitHub (Mar 15, 2024): > FYI when announce http tracker Proxy Server got domain name as expected This is libtorrent's area of responsibility, so you'd better go there on this matter.
Author
Owner

@bearx3f commented on GitHub (Mar 16, 2024):

Thank for your response

@bearx3f commented on GitHub (Mar 16, 2024): Thank for your response
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#15545
No description provided.