Test server: Fix the redirect urls having the wrong hostname on windows.


git-svn-id: http://google-safe-browsing.googlecode.com/svn/trunk/testing@111 2195c2fd-d934-0410-ae3f-cd772a4098b8
diff --git a/safebrowsing_test_server.py b/safebrowsing_test_server.py
index 39e9b44..50995d1 100755
--- a/safebrowsing_test_server.py
+++ b/safebrowsing_test_server.py
@@ -325,7 +325,7 @@
     if path == DOWNLOADS_PATH:
       # Need to have the redirects point to the current port.
       server_response = re.sub(r'localhost:\d+',
-                               '%s:%d' % (self.server.server_name,
+                               '%s:%d' % (self.server.server_address[0],
                                           self.server.server_port),
                                server_response)
       # Remove the current MAC, because it's going to be wrong now.