Skip to content

Commit 3394380

Browse files
authored
fix: restoring localhost to list of known hosts (#805)
* fix: restoring localhost to list of known hosts * changelog
1 parent d03fd4f commit 3394380

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/generated/changelog.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ <h1>Agent-JS Changelog</h1>
1212
<section>
1313
<h2>Version x.x.x</h2>
1414
<ul></ul>
15+
<h2>Version 0.20.2</h2>
16+
<ul>
17+
<li>fix: restoring localhost to list of known hosts</li>
18+
</ul>
1519
<h2>Version 0.20.1</h2>
1620
<ul>
1721
<li>feat: retry query signature verification in case cache is stale</li>

packages/agent/src/agent/http/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export class HttpAgent implements Agent {
224224
);
225225
}
226226
// Mainnet and local will have the api route available
227-
const knownHosts = ['ic0.app', 'icp0.io', '127.0.0.1', '127.0.0.1'];
227+
const knownHosts = ['ic0.app', 'icp0.io', '127.0.0.1', 'localhost'];
228228
const hostname = location?.hostname;
229229
let knownHost;
230230
if (hostname && typeof hostname === 'string') {

0 commit comments

Comments
 (0)