Skip to content

Commit f6e7308

Browse files
committed
Properly format ipv6 addresses
1 parent 6c19a29 commit f6e7308

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

services/parse-notify-params.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
return callback(sprintf(appMessages.error.subscription.invalidProtocol, protocol));
2828
}
2929

30+
if (client.indexOf(':') > -1) {
31+
client = '[' + client + ']';
32+
}
33+
3034
apiurl += client + ':' + port;
3135

3236
if (0 !== path.indexOf('/')) {

0 commit comments

Comments
 (0)