add code for socks proxy

Signed-off-by: Jack <jack.wgm@gmail.com>