Alt ports to be reversed on Android
Summary: This change adds the alt ports to the list of ports to be reversed on Android Reviewed By: mweststrate Differential Revision: D31607559 fbshipit-source-id: 4e1201c7255fcd3a437c743f827ae4bceb746348
This commit is contained in:
committed by
Facebook GitHub Bot
parent
976e53ff9b
commit
423a2c6c06
@@ -65,7 +65,12 @@ export class AndroidDeviceManager {
|
|||||||
const ports = getServerPortsConfig();
|
const ports = getServerPortsConfig();
|
||||||
if (ports.serverPorts) {
|
if (ports.serverPorts) {
|
||||||
await androidLikeDevice
|
await androidLikeDevice
|
||||||
.reverse([ports.serverPorts.secure, ports.serverPorts.insecure])
|
.reverse([
|
||||||
|
ports.serverPorts.secure,
|
||||||
|
ports.serverPorts.insecure,
|
||||||
|
ports.altServerPorts.secure,
|
||||||
|
ports.altServerPorts.insecure,
|
||||||
|
])
|
||||||
// We may not be able to establish a reverse connection, e.g. for old Android SDKs.
|
// We may not be able to establish a reverse connection, e.g. for old Android SDKs.
|
||||||
// This is *generally* fine, because we hard-code the ports on the SDK side.
|
// This is *generally* fine, because we hard-code the ports on the SDK side.
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user