]> jfr.im git - irc/quakenet/newserv.git/commit
Added capability to pqsql module to use default unix socket.
authorsplidge <redacted>
Thu, 5 Jul 2007 12:24:58 +0000 (13:24 +0100)
committersplidge <redacted>
Thu, 5 Jul 2007 12:24:58 +0000 (13:24 +0100)
commita321474b9f16b2e8dc6bbed5ef0b6c7e1037a4b3
tree4f46d04ba2c9df31d378cd561a687eeff6ebc0c2
parentfcd45fc4e3e4e45010ca671089b39aedc97eb672
Added capability to pqsql module to use default unix socket.

Updated pqsql so that if a host of "UNIX" is specified it will not pass
hostname/port information to the connect call, causing the postgres library
to fall back on the default unix domain socket.  This avoids the need to
specify the unix socket path in the newserv config file - desireable since
it can vary depending on the postgres installation.

The comparison is case sensitive so if your DB host is really called "unix"
then specifying the name in lowercase will cause it to connect via tcp as
before.

Also made "UNIX" the default hostname.

Also included the strlfunc.h to remove a compiler warning.
pqsql/pqsql.c