Skip to content

Commit

Permalink
Ensure Windows connection always autoselects IP family
Browse files Browse the repository at this point in the history
Without this connections will fail in many environments. It looks like
the Apple daemon listens only on IPv4, and in many setups localhost now
resolves to ::1. This should let us cover both options easily.
  • Loading branch information
pimterry committed Jun 14, 2024
1 parent b8a5fa2 commit b562dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { delay, getDeferred, CustomError } from '@httptoolkit/util';
import { readBytes } from './stream-utils';

const DEFAULT_ADDRESS = process.platform === 'win32'
? { port: 27015 }
? { port: 27015, autoSelectFamily: true }
: { path: '/var/run/usbmuxd' };

const CLIENT_VERSION = 'usbmux-client';
Expand Down

0 comments on commit b562dc3

Please sign in to comment.