summaryrefslogtreecommitdiffstats
path: root/src/dbi.c
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-07-10 13:13:59 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-07-10 16:21:58 +0200
commit0631b0e8e6fdf77d0bbe6715e0cb2c4bdb872b12 (patch)
treec08667b1f938675a6cbb61ed55b498df58d8716d /src/dbi.c
parenta8eccba7066047997543970b83cb8f371923833f (diff)
#988 Add DB port option to ogserver.json config file
This patch provides functionality to select a database port. It also adds a default IP for the database.
Diffstat (limited to 'src/dbi.c')
-rw-r--r--src/dbi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dbi.c b/src/dbi.c
index 6640f50..e0fe738 100644
--- a/src/dbi.c
+++ b/src/dbi.c
@@ -24,6 +24,7 @@ struct og_dbi *og_dbi_open(struct og_dbi_config *config)
}
dbi_conn_set_option(dbi->conn, "host", config->host);
+ dbi_conn_set_option(dbi->conn, "port", config->port);
dbi_conn_set_option(dbi->conn, "username", config->user);
dbi_conn_set_option(dbi->conn, "password", config->passwd);
dbi_conn_set_option(dbi->conn, "dbname", config->database);