[polari] connections: Always set port when SSL is enabled



commit fbb168babc9355273ad5a5f40469393ee0eade73
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Sep 9 02:08:26 2016 +0200

    connections: Always set port when SSL is enabled
    
    At least for now telepathy-idle does not consider the 'use-ssl'
    parameter for picking a default port, so include it even when
    not explicitly specified to make sure it is not accidentally
    removed.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=771217

 src/connections.js |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/connections.js b/src/connections.js
index 478ed2c..666554b 100644
--- a/src/connections.js
+++ b/src/connections.js
@@ -263,12 +263,14 @@ const ConnectionDetails = new Lang.Class({
             account: this._nickEntry.text.trim()
         };
 
-        if (port)
-            params.port = port;
         if (this._realnameEntry.text)
             params.fullname = this._realnameEntry.text.trim();
         if (this._sslCheckbox.active)
             params.use_ssl = true;
+        if (port)
+            params.port = port;
+        else if (params.use_ssl)
+            params.port = DEFAULT_SSL_PORT;
 
         return params;
     },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]