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:
self.error()
try:
int(v.rsplit(':'))
int(v.rsplit(':', 2)[1])
except ValueError:
self.error()
super(SocksProxy, self).setValue(v)