Use 127.0.0.1 instead of localhost in case localhost != loopback.

This commit is contained in:
Tom Robinson
2010-04-28 02:23:07 -07:00
parent f9c786f3eb
commit 22668b6b43
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ NSString *SERVER_USER = nil;
}
else if (prependServer)
{
initialURL = [NSString stringWithFormat:@"http://localhost:%d/%@", SERVER_PORT, initialURL];
initialURL = [NSString stringWithFormat:@"http://127.0.0.1:%d/%@", SERVER_PORT, initialURL];
}
NHLog(@"STARTUP", [initialURL description]);
+1 -1
View File
@@ -15,7 +15,7 @@
{
if ([[self scheme] caseInsensitiveCompare:@"file"] == NSOrderedSame)
return [[[NSURL alloc] initWithScheme:@"http"
host:[NSString stringWithFormat:@"localhost:%d", SERVER_PORT]
host:[NSString stringWithFormat:@"127.0.0.1:%d", SERVER_PORT]
path:[@"/filesystem/" stringByAppendingString:[self path]]] autorelease];
return [[self copy] autorelease];