Merge pull request #332 from anders/fix-323

Wrap IPv6 literals with brackets. Fixes #323.
l-merge-prefix
Lorenz Hübschle-Schneider 11 years ago
commit 3e6a5084a6
  1. 4
      js/glowingbear.js

@ -260,6 +260,10 @@ function($rootScope,
var connect = function (host, port, passwd, ssl, noCompression) {
var proto = ssl ? 'wss' : 'ws';
// If host is an IPv6 literal wrap it in brackets
if (host.indexOf(":") !== -1) {
host = "[" + host + "]";
}
var url = proto + "://" + host + ":" + port + "/weechat";
$log.debug('Connecting to URL: ', url);

Loading…
Cancel
Save