Arvid Norberg
Arvid Norberg
I started exploring deferring hostname lookups to the DHT socket class, which supports SOCKS5 hostnames in this branch `dht-hostname-lookups`. It's far from complete and I think I should simplify the...
there should be unit tests for these in `test.py`. when you say "unexpected output" what do you mean exactly? Is the string not treated as unicode? in .torrent files, strings...
``` >>> import libtorrent as lt >>> fs = lt.file_storage() >>> fs.add_file("test.txt", 1024) >>> ct = lt.create_torrent(fs) >>> ct.set_hash(0, b"a" * 1024) >>> ct.add_url_seed("http://example.com") >>> ct.generate() ``` The unexpected part...
ah, yes. That doesn't look right
I believe this would fix ~~most~~ **some** of these issues. All the ones where a function takes a `string_view` at least. https://github.com/arvidn/libtorrent/pull/6126
`torrent_info.file_at_offset()` is deprecated and returns an internal (also deprecated) type. I don't think it would make sense to make this work. Since it doesn't work now, likely, barely anybody is...
same thing goes for `add_http_seed()` actually. It's also deprecated in recent versions of libtorrent, and if it isn't working now, I don't think it should be fixed.
https://github.com/arvidn/libtorrent/pull/6129 fixes the ip_filter issue
`fingerprint.name` is deprecated in 1.2.x, so rather than fixing it I will remove it
https://github.com/arvidn/libtorrent/pull/6130