Skip to content

Commit

Permalink
Default to sending the application name in v4
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Feb 26, 2019
1 parent faf5e06 commit 1551627
Showing 1 changed file with 6 additions and 3 deletions.
Expand Up @@ -57,9 +57,12 @@ RCSID("$Id$")
# define NAMEDATALEN 64
#endif

/** PostgreSQL configuration
*
*/
typedef struct {
char const *db_string;
bool send_application_name;
char const *db_string; //!< Text based configuration string.
bool send_application_name; //!< Whether we send the application name to PostgreSQL.
} rlm_sql_postgres_t;

typedef struct {
Expand All @@ -72,7 +75,7 @@ typedef struct {
} rlm_sql_postgres_conn_t;

static CONF_PARSER driver_config[] = {
{ FR_CONF_OFFSET("send_application_name", FR_TYPE_BOOL, rlm_sql_postgres_t, send_application_name), .dflt = "no" },
{ FR_CONF_OFFSET("send_application_name", FR_TYPE_BOOL, rlm_sql_postgres_t, send_application_name), .dflt = "yes" },
CONF_PARSER_TERMINATOR
};

Expand Down

0 comments on commit 1551627

Please sign in to comment.