From 9ac103187fd70ac09bad8e2fa1a72c7857eb1c4e Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 5 Dec 2013 19:27:46 -0500 Subject: [PATCH] Fix an off-by-one in fallback interface selection --- moonlight-common/src/com/limelight/nvstream/NvConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonlight-common/src/com/limelight/nvstream/NvConnection.java b/moonlight-common/src/com/limelight/nvstream/NvConnection.java index 54ed4f3b..f9ea09ac 100644 --- a/moonlight-common/src/com/limelight/nvstream/NvConnection.java +++ b/moonlight-common/src/com/limelight/nvstream/NvConnection.java @@ -77,7 +77,7 @@ public class NvConnection { NetworkInterface iface = ifaceList.nextElement(); if (iface.getHardwareAddress() != null) { - selectedIface = ifaceList.nextElement(); + selectedIface = iface; break; } }