A python proxy in less than 100 lines of code
<p>Today I found some interesting code which says it can implement a tcp proxy within 100 lines of code. </p>

<p>The code is on gist: <a href="https://gist.github.com/gschizas/3731989" rel="nofollow">A python proxy in less than 100 lines of code</a>.</p>

<p>I tried it, and it works - and I have changed it for my own use...</p>

<p>However, what's out of my knowledge is why it always makes <code>forward_to = ('smtp.zaz.ufsk.br', 25)</code> as the destination address? And someone says it can be changed to <code>('localhost', 25)</code>. Can it? And what is the principle used here?</p>