Closed GoogleCodeExporter closed 8 years ago
I'm working on a fix. Thanks for the report!
Original comment by arvid.no...@gmail.com
on 16 Feb 2010 at 4:22
python idle:
>>> import libtorrent as lt
>>> ses = lt.session()
>>> ses.add_extension(lt.create_ut_pex_plugin)
>>> settings = lt.session_settings()
>>> settings.use_dht_as_fallback=False
>>> ses.set_settings(settings)
>>> pe_settings = lt.pe_settings()
>>> pe_settings.in_enc_policy=lt.enc_policy.enabled
>>> pe_settings.out_enc_policy=lt.enc_policy.enabled
>>> pe_settings.allowed_enc_level=lt.enc_level.both
>>> ses.set_pe_settings(pe_settings)
>>> ses.listen_on(6881, 6889, interface='127.0.0.1')
True
>>> ses.start_lsd()
>>> ses.start_upnp()
>>> ses.start_dht(None)
>>> proxy_settings=lt.proxy_settings()
>>> proxy_settings.type=lt.proxy_type.socks5
>>> proxy_settings.hostname='127.0.0.1'
>>> proxy_settings.port=1080
>>> ses.set_dht_proxy(proxy_settings) #this line, proxy get a unknown error
>>> ses.dht_state() #program has not any return and wait it, no >>> prompt,
must kill
process. expect return a dict like {'node-id':
"\xa6'O\x02\x01+\x1b'\xbb\x94\xff\x94g\x86\xfb\xb1\xbc3l\\"}
another way:
>>> import libtorrent as lt
... # same as above
>>> ses.listen_on(6881, 6889, interface='127.0.0.1')
True
>>> ses.start_lsd()
>>> proxy_settings=lt.proxy_settings()
>>> proxy_settings.type=lt.proxy_type.socks5
>>> proxy_settings.hostname='127.0.0.1'
>>> proxy_settings.port=1080
>>> ses.set_dht_proxy(proxy_settings) #this line, proxy get a unknown error
>>> ses.add_dht_router("router.bittorrent.com", 6881)
>>> ses.add_dht_router("router.utorrent.com", 6881)
>>> ses.add_dht_router("router.bitcomet.com", 6881)
>>> ses.start_dht(None)
>>> ses.dht_state() #program has not any return and wait it, same as above
Original comment by smm...@gmail.com
on 17 Feb 2010 at 7:32
[deleted comment]
I can't explain the SOCKS connect command you see. Since this is UDP, it should
be using the UDP-ASSOCIATE
command. I've fixed a few issues related to the UDP support in my SOCKS5
implementation. I've checked this
into all active branches (RC_0_14, RC_0_15 and trunk). Do you think you could
see if this issue is fixed?
Original comment by arvid.no...@gmail.com
on 18 Feb 2010 at 6:57
Original comment by arvid.no...@gmail.com
on 21 Feb 2010 at 10:57
Original issue reported on code.google.com by
smm...@gmail.com
on 16 Feb 2010 at 9:34