Created
February 13, 2011 17:02
-
-
Save ithinkihaveacat/824836 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Do not name this twisted.py or Python's loader will get | |
# confused! | |
from twisted.web import proxy, http | |
from twisted.internet import reactor | |
from twisted.python import log | |
import sys | |
# log.startLogging(sys.stdout) | |
class ProxyFactory(http.HTTPFactory): | |
protocol = proxy.Proxy | |
reactor.listenTCP(8083, ProxyFactory()) | |
reactor.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment