mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 09:28:41 +00:00
Fix setting Peer TOS byte
This commit is contained in:
parent
631768f01b
commit
8249ad86ea
2 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
Deluge 1.1.1 - (In Development)
|
Deluge 1.1.1 - (In Development)
|
||||||
Core:
|
Core:
|
||||||
* Fix oldstateupgrader for those upgrading from 0.5.x
|
* Fix oldstateupgrader for those upgrading from 0.5.x
|
||||||
|
* Fix setting Peer TOS byte
|
||||||
|
|
||||||
GtkUI:
|
GtkUI:
|
||||||
* Fix opening links from Help menu and others
|
* Fix opening links from Help menu and others
|
||||||
|
|
|
@ -265,7 +265,7 @@ class PreferencesManager(component.Component):
|
||||||
def _on_set_peer_tos(self, key, value):
|
def _on_set_peer_tos(self, key, value):
|
||||||
log.debug("setting peer_tos to: %s", value)
|
log.debug("setting peer_tos to: %s", value)
|
||||||
try:
|
try:
|
||||||
self.settings.peer_tos = str(int(value, 16))
|
self.settings.peer_tos = chr(int(value, 16))
|
||||||
except ValueError, e:
|
except ValueError, e:
|
||||||
log.debug("Invalid tos byte: %s", e)
|
log.debug("Invalid tos byte: %s", e)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue