Skip to content

Commit f915db9

Browse files
committed
Database default host: Fix comment.
To correctly explain why flatpak needs an IP address instead of localhost.
1 parent 155996a commit f915db9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gnucash/gnome-utils/dialog-file-access.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@
4040

4141
static QofLogModule log_module = GNC_MOD_GUI;
4242

43-
/* Flatpak build blocks access to the resolver so it can't retrieve
44-
* localhost's IP address.
43+
/* MariaDB/MySQL/Postgres optimize localhost to a unix socket but
44+
* flatpak won't connect to unix sockets without gymnastics default to
45+
* the localhost IP to force a network connection.
4546
*/
4647
#define DEFAULT_HOST "127.0.0.1"
4748
#define DEFAULT_DATABASE PROJECT_NAME

0 commit comments

Comments
 (0)