goagent/goagent — pull request #30 by bruiselee (2012-09-30 02:49:58+00:00)
Title: fixed proxy.py listen error for PAAS/SOCKS5

follow line would raise error because the first parameter should be a tuple like (127.0.0.1,8088) but actually is '127.0.0.1:8088'

gevent.server.StreamServer(common.PAAS_LISTEN, paasproxy_handler)

here's the fixed:

param = common.PAAS_LISTEN.split(':')
server = gevent.server.StreamServer((param[0], int(param[1])), paasproxy_handler)