[official]qBittorrent 3.1.12 installer - Built with MSVC 2013

Testing the freshly baked, latest builds!

Moderator: Global Moderator

sledgehammer_999
Administrator
Administrator
Posts: 2406
Joined: Sun Jan 23, 2011 1:17 pm

Re: [official]qBittorrent 3.1.11 installer - Built with MSVC 2008

Post by sledgehammer_999 » Sat Nov 01, 2014 4:30 pm

When they move to peer id show them this:  https://github.com/qbittorrent/qBittorr ... nt_Peer_ID

This is the particular line from qbt source for user agent:

Code: Select all

sessionSettings.user_agent = "qBittorrent "VERSION;
and VERSION is defined as:

Code: Select all

v3.1.11
Maybe a wireshark capture would shed some light on that.

Muzak
Veteran
Veteran
Posts: 78
Joined: Mon Apr 14, 2014 10:24 pm

Re: [official]qBittorrent 3.1.11 installer - Built with MSVC 2008

Post by Muzak » Mon Nov 03, 2014 6:42 pm

Thanks, I'll probably have to wireshark it, something funky is going on, probably something with my connection....

Muzak
Veteran
Veteran
Posts: 78
Joined: Mon Apr 14, 2014 10:24 pm

Re: [official]qBittorrent 3.1.11 installer - Built with MSVC 2008

Post by Muzak » Wed Nov 05, 2014 5:13 pm

Turns out they were using the Peer ID and had some regx code to split the peer id up and it broke on having a letter in the version.  Took me quite a bit of head scratching to come up with the fix, but all is good now, they updated the code and it's all good.....  Did I mention how much I hate regx????

FWIW, the current PeerId for 3.1.10 and 3.1.11 violate the "convention" for peer ids (I just received a mini-education on why my patch was wrong, even though it wasn't....hehehe)
https://wiki.theory.org/BitTorrentSpecification#peer_id
Last edited by Muzak on Wed Nov 05, 2014 10:02 pm, edited 1 time in total.

sledgehammer_999
Administrator
Administrator
Posts: 2406
Joined: Sun Jan 23, 2011 1:17 pm

Re: [official]qBittorrent 3.1.11 installer - Built with MSVC 2008

Post by sledgehammer_999 » Sat Nov 08, 2014 11:29 pm

I think the keyword here is "ascii digits".

sledgehammer_999
Administrator
Administrator
Posts: 2406
Joined: Sun Jan 23, 2011 1:17 pm

Re: [official]qBittorrent 3.1.11 installer - Built with MSVC 2008

Post by sledgehammer_999 » Sat Nov 08, 2014 11:44 pm

Yeap. Here is an excerpt from include/libtorrent/fingerprint.hpp (libtorrent 1.0.3):

Code: Select all

char version_to_char(int v) const
		{
			if (v >= 0 && v < 10) return '0' + v;
			else if (v >= 10) return 'A' + (v - 10);
			TORRENT_ASSERT(false);
			return '0';
		}
Libtorrent allows to construct the peer id by providing the fingerprint class a 2 character string, and 4 integers for major,minor,revision,tag versions. Each interger is converted to ascii using the above function.
Numbers 0-9 are converted to their equivalent ascii code(aka number).
All others are converted to the ascii code of 'A' plus their number.(minus 10).
Note: In C/C++ when you enclose something in single quotes it is treated as a character not as a number. So in this case '0' converted to number means 48 (the ascii code for zero).

EDIT: variables of type char can be treated in 2 ways: represent an actual character or represent a number(255 possible values).
Last edited by sledgehammer_999 on Sat Nov 08, 2014 11:46 pm, edited 1 time in total.

KManju
Newbie
Newbie
Posts: 1
Joined: Wed Feb 11, 2015 10:10 pm

Re: [official]qBittorrent 3.1.11 installer - Built with MSVC 2008

Post by KManju » Wed Feb 11, 2015 10:30 pm

I'm not sure if this is the right place to ask this, but I am new to the forums and qBittorrent, and haven't had a chance to fully explore. I know that with some torrent clients, the 12 bytes of padding in the peer id are static and are used as a unique id of sorts. I was wondering if this was the case with 3.1.11, and if so, is there anyway to change it other than enabling the 'anonymous mode' which unfortunately disables DHT and PEX.

sledgehammer_999
Administrator
Administrator
Posts: 2406
Joined: Sun Jan 23, 2011 1:17 pm

Re: [official]qBittorrent 3.1.11 installer - Built with MSVC 2008

Post by sledgehammer_999 » Thu Feb 12, 2015 2:29 pm

The padding should be random. At least that is what the libtorrent docs say.
There is no way for an end-user to spoof the peer-id. (qbt would be banned immediately by every tracker if there was such a possibility).
I am not sure, but I think libtorrent 1.0.x allows dht/pex with anonymous mode. You should try the alpha builds in the "windows development" section of the forum. They use libtorrent 1.0.x. (the v3.1.x series aren't compatible with that)

Muzak
Veteran
Veteran
Posts: 78
Joined: Mon Apr 14, 2014 10:24 pm

Re: [official]qBittorrent 3.1.11 installer - Built with MSVC 2008

Post by Muzak » Thu Feb 12, 2015 4:54 pm

Per libtorrent the 12 bytes are random each time you start the client.  They don't change until you close and reopen the client.  Most sites frown on this being changed during the client session.

sledgehammer_999
Administrator
Administrator
Posts: 2406
Joined: Sun Jan 23, 2011 1:17 pm

Re: [official]qBittorrent 3.1.11 installer - Built with MSVC 2008

Post by sledgehammer_999 » Mon Feb 23, 2015 12:16 am

Here is qBittorrent 3.1.12 built with MSVC 2013 express.

3.1.12 link-> http://www.fosshub.com/qBittorrent.html
Changelog: http://www.qbittorrent.org/news.php

Libraries's version used:
Libtorrent: 0.16.19+svn10736
Qt: 4.8.6
Boost: 1.55.0

As you may have noticed I have changed to using msvc 2013 instead of msvc 2008(these are compilers). I want Windows XP users to tell me if it works on their system. I tested it on a clean Windows XP VM and it works for me.

Henry63
Member
Member
Posts: 40
Joined: Tue Dec 02, 2014 3:55 am

Re: [official]qBittorrent 3.1.12 installer - Built with MSVC 2013

Post by Henry63 » Mon Feb 23, 2015 1:42 am

I just installed Win8.1 yesterday and 3.1.11 installed just fine but 3.1.12 is making Win8.1 want to block the install program from running. Claims it's "unsafe". I assume it's a false positive of some sort.

sledgehammer_999
Administrator
Administrator
Posts: 2406
Joined: Sun Jan 23, 2011 1:17 pm

Re: [official]qBittorrent 3.1.12 installer - Built with MSVC 2013

Post by sledgehammer_999 » Mon Feb 23, 2015 2:02 am

[quote="Henry63"]
I just installed Win8.1 yesterday and 3.1.11 installed just fine but 3.1.12 is making Win8.1 want to block the install program from running. Claims it's "unsafe". I assume it's a false positive of some sort.
[/quote]

Are you refering to the UAC dialog or to some kind of antivirus warning?
In the past some antivirus programs gave false positives for our installers... This might be it. My avast shows it as clean.

Henry63
Member
Member
Posts: 40
Joined: Tue Dec 02, 2014 3:55 am

Re: [official]qBittorrent 3.1.12 installer - Built with MSVC 2013

Post by Henry63 » Mon Feb 23, 2015 2:26 am

I just have a stock Pro install(no custom anti-malware or anything, just games and "normal" programs), but it was like a UAC thing, where the entire screen turned grey and a message bar went across the middle saying that the program was blocked. MsMpEng has been running in the background for a quite a while now, from what I found, it's probably "learning" the new system.

I just recently tried it again and it is no longer being blocked, but I did try it a few times before originally posting. I guess I'll just assume MsMpEng was being overly paranoid or something. I kicked off a full scan, I read this can help it learn faster or something.

tekko

Re: [official]qBittorrent 3.1.11 installer - Built with MSVC 2008

Post by tekko » Mon Feb 23, 2015 3:50 pm

[quote="sledgehammer_999"]
Here is qBittorrent 3.1.12 built with MSVC 2013 express.

3.1.12 link-> http://www.fosshub.com/qBittorrent.html
Changelog: http://www.qbittorrent.org/news.php

Libraries's version used:
Libtorrent: 0.16.19+svn10736
Qt: 4.8.6
Boost: 1.55.0

As you may have noticed I have changed to using msvc 2013 instead of msvc 2008(these are compilers). I want Windows XP users to tell me if it works on their system. I tested it on a clean Windows XP VM and it works for me.
[/quote]


xpsp3... main os, not vm
no problem yet.

User avatar
Nemo
Administrator
Administrator
Posts: 1518
Joined: Sat Jul 24, 2010 6:24 pm

Re: [official]qBittorrent 3.1.12 installer - Built with MSVC 2013

Post by Nemo » Mon Feb 23, 2015 6:29 pm

Thanks sledge.
Forum Rules and Guidelines

Forum Admin.
Dutch & Turkish Translator.


Image
Image

100%
Veteran
Veteran
Posts: 88
Joined: Mon Oct 08, 2012 12:36 pm

Re: [official]qBittorrent 3.1.12 installer - Built with MSVC 2013

Post by 100% » Tue Feb 24, 2015 12:23 pm

qBt v3.1.12 is working great, thanks guys!

Post Reply