Put brackets around IPv6 addresses in invitation URL, even if there is no port number.
This commit is contained in:
parent
475088ed77
commit
18698c4e12
1 changed files with 4 additions and 2 deletions
|
@ -197,8 +197,10 @@ done:
|
||||||
else
|
else
|
||||||
xasprintf(&hostport, "%s:%s", hostname, port);
|
xasprintf(&hostport, "%s:%s", hostname, port);
|
||||||
} else {
|
} else {
|
||||||
hostport = hostname;
|
if(strchr(hostname, ':'))
|
||||||
hostname = NULL;
|
xasprintf(&hostport, "[%s]", hostname);
|
||||||
|
else
|
||||||
|
hostport = xstrdup(hostname);
|
||||||
}
|
}
|
||||||
|
|
||||||
free(hostname);
|
free(hostname);
|
||||||
|
|
Loading…
Reference in a new issue