Skip to content

Commit

Permalink
localhost -> 127.0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
DanTup committed Jun 5, 2019
1 parent 3696fe2 commit 4eada7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/extension/commands/analyzer.ts
Expand Up @@ -7,7 +7,7 @@ export class AnalyzerCommands {
constructor(context: vs.ExtensionContext, analyzer: Analyzer) {
context.subscriptions.push(vs.commands.registerCommand("dart.openAnalyzerDiagnostics", async () => {
const res = await analyzer.diagnosticGetServerPort();
openInBrowser(`http://localhost:${res.port}/`);
openInBrowser(`http://127.0.0.1:${res.port}/`);
}));
}
}
2 changes: 1 addition & 1 deletion src/extension/sdk/dev_tools.ts
Expand Up @@ -39,7 +39,7 @@ export class DevToolsManager implements vs.Disposable {
}

/// Spawns DevTools and returns the full URL to open for that session
/// eg. http://localhost:8123/?port=8543
/// eg. http://127.0.0.1:8123/?port=8543
public async spawnForSession(session: DartDebugSessionInformation): Promise<{ url: string, dispose: () => void } | undefined> {
this.analytics.logDebuggerOpenDevTools();

Expand Down
2 changes: 1 addition & 1 deletion src/test/flutter_web_only/debug/flutter_web.test.ts
Expand Up @@ -37,7 +37,7 @@ describe("flutter for web debugger", () => {
it("runs a Flutter web application and remains active until told to quit", async () => {
const config = await startDebugger(flutterWebHelloWorldMainFile);
await Promise.all([
dc.assertOutputContains("stdout", "Serving `web` on http://localhost:"),
dc.assertOutputContains("stdout", "Serving `web` on http://127.0.0.1:"),
dc.configurationSequence(),
dc.launch(config),
]);
Expand Down

0 comments on commit 4eada7f

Please sign in to comment.