Skip to content

Commit

Permalink
Fix #912.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuchenshi authored Jan 25, 2023
1 parent 98a20e9 commit 141403f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/common/EmulatorConfigProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,10 @@ async function configFetcher(url: string): Promise<Config> {
// remotely and connect from another device. It does not work for some setups
// e.g. when Emulator UI is proxied but not the individual emulators.
for (const listen of (value.listen ?? []) as {
host: string;
address: string;
port: number;
}[]) {
if (listen.host === '0.0.0.0') {
if (listen.address === '0.0.0.0') {
port = listen.port;
host = window.location.hostname;
if (!host || host === 'localhost') {
Expand All @@ -229,7 +229,7 @@ async function configFetcher(url: string): Promise<Config> {
host = '127.0.0.1';
}
break;
} else if (listen.host === '::') {
} else if (listen.address === '::') {
port = listen.port;
host = window.location.hostname;
if (!host || host === 'localhost') {
Expand Down

0 comments on commit 141403f

Please sign in to comment.