On Tue, Jul 9, 2013 at 11:21 PM, Jeff Janes <jeff.ja...@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


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to