aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwgalanciak2014-01-14 17:59:52 (EST)
committerGerrit Code Review @ Eclipse.org2014-01-15 14:27:06 (EST)
commitcca85ba4dff35af76e493f846954687cbb0b7f24 (patch)
tree82b2ca8906dd4ee6acf144b0aafb071642429561
parent2ae4454072fcbc41df65f895cd3ba35a497380fe (diff)
downloadorg.eclipse.pdt-cca85ba4dff35af76e493f846954687cbb0b7f24.zip
org.eclipse.pdt-cca85ba4dff35af76e493f846954687cbb0b7f24.tar.gz
org.eclipse.pdt-cca85ba4dff35af76e493f846954687cbb0b7f24.tar.bz2
Bug 425706 - Cannot start Zend Debugger session on a local server whenrefs/changes/33/20633/2
connected to VPN Change-Id: I7ce7abfdb658f628b183b88143d51780c8a57eec Signed-off-by: wgalanciak <wojciech.galanciak@gmail.com>
-rw-r--r--plugins/org.eclipse.php.debug.core/src/org/eclipse/php/internal/debug/core/preferences/PHPDebugCorePreferenceInitializer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.php.debug.core/src/org/eclipse/php/internal/debug/core/preferences/PHPDebugCorePreferenceInitializer.java b/plugins/org.eclipse.php.debug.core/src/org/eclipse/php/internal/debug/core/preferences/PHPDebugCorePreferenceInitializer.java
index e674e49..30db004 100644
--- a/plugins/org.eclipse.php.debug.core/src/org/eclipse/php/internal/debug/core/preferences/PHPDebugCorePreferenceInitializer.java
+++ b/plugins/org.eclipse.php.debug.core/src/org/eclipse/php/internal/debug/core/preferences/PHPDebugCorePreferenceInitializer.java
@@ -59,6 +59,7 @@ public class PHPDebugCorePreferenceInitializer extends
try {
StringBuilder b = new StringBuilder();
+ b.append("127.0.0.1"); //$NON-NLS-1$
Enumeration<NetworkInterface> ii = NetworkInterface
.getNetworkInterfaces();
while (ii.hasMoreElements()) {
@@ -70,11 +71,10 @@ public class PHPDebugCorePreferenceInitializer extends
while (aa.hasMoreElements()) {
InetAddress a = aa.nextElement();
if (a instanceof Inet4Address && !a.isLoopbackAddress()) {
- b.append(a.getHostAddress()).append(","); //$NON-NLS-1$
+ b.append(",").append(a.getHostAddress()); //$NON-NLS-1$
}
}
}
- b.append("127.0.0.1"); //$NON-NLS-1$
node.put(PHPDebugCorePreferenceNames.CLIENT_IP, b.toString());
} catch (Exception e) {
}