Skip to content

Commit

Permalink
Don't append a port number if the application if the app doesn't allow
Browse files Browse the repository at this point in the history
direct connect.
  • Loading branch information
nullterminated committed Feb 21, 2013
1 parent 3bb85a0 commit e8bbb56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public void _completeURLPrefix(StringBuffer stringbuffer, boolean secure, int po
stringbuffer.append("http://");
}
stringbuffer.append(serverName);
if(portStr != null && ((secure && !"443".equals(portStr)) || (!secure && !"80".equals(portStr)))) {
if(portStr != null && WOApplication.application().isDirectConnectEnabled() && ((secure && !"443".equals(portStr)) || (!secure && !"80".equals(portStr)))) {
stringbuffer.append(':');
stringbuffer.append(portStr);
}
Expand Down

0 comments on commit e8bbb56

Please sign in to comment.