summaryrefslogtreecommitdiff
path: root/ip_reflector.py
blob: 8ccd9f48694b53fa9695cabe2d0aa7c68026ed68 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env python2.6


def reflector_app(environ, start_response):
    start_response('200 OK', [('Content-Type', 'text/plain')])
    return environ['REMOTE_ADDR']


if __name__ == "__main__":
    from flup.server.fcgi_fork import WSGIServer
    WSGIServer(reflector_app, maxSpare=1).run()