add proxy_type_t to python binding

This commit is contained in:
arvidn 2016-11-04 18:09:53 -04:00 committed by Arvid Norberg
parent 2d1ce777f5
commit 19a5d9f989
1 changed files with 10 additions and 0 deletions

View File

@ -248,6 +248,16 @@ void bind_session_settings()
#endif
;
enum_<settings_pack::proxy_type_t>("proxy_type_t")
.value("none", settings_pack::none)
.value("socks4", settings_pack::socks4)
.value("socks5", settings_pack::socks5)
.value("socks5_pw", settings_pack::socks5_pw)
.value("http", settings_pack::http)
.value("http_pw", settings_pack::http_pw)
.value("i2p_proxy", settings_pack::i2p_proxy)
;
#ifndef TORRENT_NO_DEPRECATE
enum_<proxy_settings::proxy_type>("proxy_type")
.value("none", proxy_settings::none)