Re: SSL SNI

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: SSL SNI
Дата
Msg-id 181baf04-8a17-f8a8-cdfc-4d1b1d63e0d9@enterprisedb.com
обсуждение исходный текст
Ответ на SSL SNI  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Ответы Re: SSL SNI  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-hackers
On 26.02.21 23:27, Greg Stark wrote:
>> Do you mean the IPv6 detection code is not correct?  What is the problem?
> 
> This bit, will recognize ipv4 addresses but not ipv6 addresses:
> 
> + /*
> + * Set Server Name Indication (SNI), but not if it's a literal IP address.
> + * (RFC 6066)
> + */
> + if (!(strspn(conn->pghost, "0123456789.") == strlen(conn->pghost) ||
> +   strchr(conn->pghost, ':')))
> + {

The colon should recognize an IPv6 address, unless I'm not thinking 
straight.



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Kyotaro Horiguchi
Дата:
Сообщение: Re: libpq debug log
Следующее
От: "Drouvot, Bertrand"
Дата:
Сообщение: Re: Minimal logical decoding on standbys