diff --git a/.gitignore b/.gitignore index 59a75527..180ceb14 100644 --- a/.gitignore +++ b/.gitignore @@ -102,8 +102,10 @@ dist # TernJS port file .tern-port +.DS_Store + +# Custom lib -script.ts +script.* *.apk docs/ -.DS_Store diff --git a/__tests__/adbClient/constructorAndStartServer.ts b/__tests__/adbClient/constructorAndStartServer.ts index becf01b3..d50e71e3 100644 --- a/__tests__/adbClient/constructorAndStartServer.ts +++ b/__tests__/adbClient/constructorAndStartServer.ts @@ -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 }); @@ -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 }); diff --git a/src/client.ts b/src/client.ts index 396f3b5d..03a4629f 100644 --- a/src/client.ts +++ b/src/client.ts @@ -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;