Re: libpq port number handling

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: libpq port number handling
Дата
Msg-id alpine.BSO.2.00.0909242126100.3560@leary.csoft.net
обсуждение исходный текст
Ответ на Re: libpq port number handling  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers

On Thu, 24 Sep 2009, Tom Lane wrote:

> Sam Mason <sam@samason.me.uk> writes:
>> +        if (portnum < 1 || portnum > 65535)
>
> BTW, it strikes me that we could tighten this even more by rejecting
> target ports below 1024.

Restricting the target port seems like a bad idea.  What about a firewall
(or ssh tunnel) that did port forwarding.  What PG binds to and what a
client connects to may not be the same thing.

Kris Jurka

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

Предыдущее
От: KaiGai Kohei
Дата:
Сообщение: Re: libpq port number handling
Следующее
От: Robert Haas
Дата:
Сообщение: Re: libpq port number handling