Skip to content

Commit 08eb7f3

Browse files
committed
fix(device-socket): iOS Socket proxy should listen on IPv4 localhost addapter
Check for available port is done on this adapter and by default server is launched on "::" which is IPv6's any adapter
1 parent fe1d39d commit 08eb7f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/device-sockets/ios/socket-proxy-factory.ts

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export class SocketProxyFactory extends EventEmitter implements ISocketProxyFact
8585

8686
const server = new ws.Server(<any>{
8787
port: localPort,
88+
host: "localhost",
8889
verifyClient: async (info: any, callback: Function) => {
8990
this.$logger.info("Frontend client connected.");
9091
let _socket;

0 commit comments

Comments
 (0)