clowwindy/shadowsocks — pull request #24 by est (2013-01-14 09:00:47+00:00)
Title: fix string index out of range in local.py line 107

Hi,

When local client close socks5 connection the local.py will receive zero length `data`

This is the error:

File "local.py", line 107, in handle
mode = ord(data[1])
IndexError: string index out of range

This small patch fix this problem :D