Blame SOURCES/cobbler-remote-addr.patch

1070a0
diff -rupN cobbler-2.0.7-old/scripts/services.wsgi cobbler-2.0.7/scripts/services.wsgi
1070a0
--- cobbler-2.0.7-old/scripts/services.wsgi	2014-06-02 10:33:45.037218183 -0400
1070a0
+++ cobbler-2.0.7/scripts/services.wsgi	2014-06-02 10:17:09.122312563 -0400
1070a0
@@ -58,6 +58,9 @@ def application(environ, start_response)
1070a0
     # like: eth0 XX:XX:XX:XX:XX:XX
1070a0
     form["REMOTE_MAC"]  = form.get("HTTP_X_RHN_PROVISIONING_MAC_0", None)
1070a0
 
1070a0
+    # Save client remote address for ks/triggers
1070a0
+    form["REMOTE_ADDR"]  = environ['REMOTE_ADDR']
1070a0
+
1070a0
     # Read config for the XMLRPC port to connect to:
1070a0
     fd = open("/etc/cobbler/settings")
1070a0
     data = fd.read()