[Moin-devel] [ moin-Bugs-783291 ] test for local request does not work

SourceForge.net noreply at sourceforge.net
Mon Aug 4 21:48:03 EDT 2003


Bugs item #783291, was opened at 2003-08-05 14:47
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108482&aid=783291&group_id=8482

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Giuseppe Scelsi (gscelsi)
Assigned to: Nobody/Anonymous (nobody)
Summary: test for local request does not work

Initial Comment:
Moin 1.0, cgimain.py
The test for local request does not work.  Changing
SERVER_NAME to SERVER_ADDR, as shown below, seems to
fix the problem.

    # check if the request is a local one
    import socket
    local_request =
socket.getfqdn(os.environ.get('SERVER_ADDR')) == \
        socket.getfqdn(os.environ.get('REMOTE_ADDR'))


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108482&aid=783291&group_id=8482




More information about the Moin-devel mailing list