* change default to vpn profile instead of wan for webstart client.
This commit is contained in:
parent
4e05ff082f
commit
8d113ba2a5
|
@ -87,15 +87,29 @@ 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_WAN);
|
||||
cc.setAppsPort(80);
|
||||
cc.setConnectionProfile(CConnection.PROFILE_VPN);
|
||||
cc.setAppsPort(DEFAULT_APP_SERVER_PORT);
|
||||
if (cc.testAppsServer() == null)
|
||||
{
|
||||
s_cc = cc;
|
||||
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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue