mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-10 04:02:30 +00:00
* Allow hex values in the 'tos' option.
* Moved more encryption related code to HandshakeEncryption. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@797 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -94,4 +94,15 @@ Variable::string_to_value_unit(const char* pos, value_type* value, int base, int
|
||||
return last;
|
||||
}
|
||||
|
||||
bool
|
||||
Variable::string_to_value_unit_nothrow(const char* pos, value_type* value, int base, int unit) {
|
||||
try {
|
||||
string_to_value_unit(pos, value, base, unit);
|
||||
|
||||
return true;
|
||||
} catch (const torrent::input_error& e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user