Fix [ 1937320 ] Problems defaulting webstart connection to VPN

This commit is contained in:
Carlos Ruiz 2008-04-08 04:42:29 +00:00
parent 2540820787
commit bfe004c117
1 changed files with 1 additions and 15 deletions

View File

@ -87,9 +87,8 @@ public class CConnection implements Serializable, Cloneable
CConnection cc = null;
if (apps_host != null && Adempiere.isWebStartClient())
{
//default to vpn for webstart client
cc = new CConnection(apps_host);
cc.setConnectionProfile(CConnection.PROFILE_VPN);
cc.setConnectionProfile(CConnection.PROFILE_LAN);
cc.setAppsPort(DEFAULT_APP_SERVER_PORT);
if (cc.testAppsServer() == null)
{
@ -97,19 +96,6 @@ public class CConnection implements Serializable, Cloneable
Ini.setProperty(Ini.P_CONNECTION, cc.toStringLong());
Ini.saveProperties(Ini.isClient());
}
else
{
//try wan
cc = new CConnection(apps_host);
cc.setConnectionProfile(CConnection.PROFILE_WAN);
cc.setAppsPort(80);
if (cc.testAppsServer() == null)
{
s_cc = cc;
Ini.setProperty(Ini.P_CONNECTION, cc.toStringLong());
Ini.saveProperties(Ini.isClient());
}
}
}
if (s_cc == null)
{