mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
Use 127.0.0.1 instead of localhost in case localhost != loopback.
This commit is contained in:
@@ -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]);
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user