Re: Force ssl connection
От | Muhammad Bashir Al-Noimi |
---|---|
Тема | Re: Force ssl connection |
Дата | |
Msg-id | CABpATRvDzjx5jCknHZHdszm=m+BY6BzofGM8oyb_LhbP2GSWbg@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Force ssl connection (Jeff Janes <jeff.janes@gmail.com>) |
Ответы |
Re: Force ssl connection
Re: Force ssl connection |
Список | pgsql-general |
On Tue, Jul 9, 2013 at 11:21 PM, Jeff Janes <jeff.janes@gmail.com> wrote: > From your original email: > db.setHostName("localhost"); > > So localhost is probably matching "127.0.0.1/32" or "::1/128", which > are explicitly allowed. I'm using this and still able to connect without SSL db.setHostName("192.168.0.74"); db.setPort(5433); // set requiressl=1 to enable SSL db.setConnectOptions("requiressl=0"); db.setDatabaseName("testDB"); db.setUserName("postgres"); db.setPassword("****"); if (!db.open()) qDebug() << "Unable to connect!"; else qDebug() << "connected."; -- Best Regards Muhammad Bashir Al-Noimi
В списке pgsql-general по дате отправления: