Socket driver: Fix typo.

This commit is contained in:
Valentin Lorentz 2012-10-07 13:55:01 +02:00
parent 156b3d93e1
commit 42957a6a69

View File

@ -261,7 +261,7 @@ class SocksProxy(registry.String):
if ':' not in v: if ':' not in v:
self.error() self.error()
try: try:
int(v.rsplit(':')) int(v.rsplit(':', 2)[1])
except ValueError: except ValueError:
self.error() self.error()
super(SocksProxy, self).setValue(v) super(SocksProxy, self).setValue(v)