Created
February 6, 2015 03:16
-
-
Save santhoshtr/dc8dc71055d2af50ccd3 to your computer and use it in GitHub Desktop.
proxy
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
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(9898, ProxyFactory()) | |
reactor.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment