You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ea...@apache.org on 2018/09/24 13:27:39 UTC

qpid-dispatch git commit: DISPATCH-1109 Set default port based on protocol

Repository: qpid-dispatch
Updated Branches:
  refs/heads/master b9ffcc649 -> e64d247a9


DISPATCH-1109 Set default port based on protocol


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/e64d247a
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/e64d247a
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/e64d247a

Branch: refs/heads/master
Commit: e64d247a926c40befa1eddc64761a78e3bb0d23b
Parents: b9ffcc6
Author: Ernest Allen <ea...@redhat.com>
Authored: Mon Sep 24 09:27:17 2018 -0400
Committer: Ernest Allen <ea...@redhat.com>
Committed: Mon Sep 24 09:27:17 2018 -0400

----------------------------------------------------------------------
 console/stand-alone/plugin/js/qdrSettings.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/e64d247a/console/stand-alone/plugin/js/qdrSettings.js
----------------------------------------------------------------------
diff --git a/console/stand-alone/plugin/js/qdrSettings.js b/console/stand-alone/plugin/js/qdrSettings.js
index 1a432df..def5bd5 100644
--- a/console/stand-alone/plugin/js/qdrSettings.js
+++ b/console/stand-alone/plugin/js/qdrSettings.js
@@ -31,7 +31,7 @@ export class SettingsController {
 
     $scope.formEntity = angular.fromJson(localStorage[QDR_SETTINGS_KEY]) || {
       address: window.location.hostname,
-      port: Number(window.location.port) || 80,
+      port: Number(window.location.port) || (window.location.protocol === 'https' ? 443 : 80),
       username: '',
       password: '',
       autostart: false


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org