Skip to content

Commit

Permalink
Use local address instead of localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
Maaaartin committed May 19, 2024
1 parent a1d7db3 commit 279e70e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ dist

# TernJS port file
.tern-port
.DS_Store

# Custom
lib
script.ts
script.*
*.apk
docs/
.DS_Store
4 changes: 2 additions & 2 deletions __tests__/adbClient/constructorAndStartServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe('Client constructor tests', () => {
const client = new Client();
expect(client['options']).toEqual({
port: 5037,
host: 'localhost',
host: '127.0.0.1',
bin: 'adb',
noAutoStart: false
});
Expand All @@ -16,7 +16,7 @@ describe('Client constructor tests', () => {
const client = new Client({ bin: undefined, port: 5036 });
expect(client['options']).toEqual({
port: 5036,
host: 'localhost',
host: '127.0.0.1',
bin: 'adb',
noAutoStart: false
});
Expand Down
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ import Tap from './commands/host-transport/input/tap';
const ADB_DEFAULT_PORT = 5555;
const DEFAULT_OPTIONS = {
port: 5037,
host: 'localhost',
host: '127.0.0.1',
bin: 'adb',
noAutoStart: false
} as const;
Expand Down

0 comments on commit 279e70e

Please sign in to comment.