#37 test for local request does not work

closed
nobody
None
5
2004-01-12
2003-08-05
No

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'))

Discussion

  • Thomas Waldmann

    Thomas Waldmann - 2004-01-12
    • status: open --> closed
     
  • Thomas Waldmann

    Thomas Waldmann - 2004-01-12

    Logged In: YES
    user_id=100649

    should be fixed in 1.2 devel version, maybe in 1.1, too.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks