diff --git a/Makefile b/Makefile index a8ae6d7..da4af03 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ HDRS = $(wildcard include/*.h) CFLAGS = -O3 -fstack-protector-strong -fcf-protection=full -fstack-clash-protection LIBS = -linih -lmp -VERSION = 24.00 +VERSION = 24.01 all: dist dist/pooler $(PO_OUTS) diff --git a/install/config.ini b/install/config.ini index 1d135bc..c885f6f 100644 --- a/install/config.ini +++ b/install/config.ini @@ -4,6 +4,7 @@ addr = 0.0.0.0:5858 threads = 10 -# [pool-name] +# [pool-config] +# name = pool-name # host = pool.example.com # dir = /srv/pools/pool-name diff --git a/locale/tr/LC_MESSAGES/pooler.po b/locale/tr/LC_MESSAGES/pooler.po index 60a4e25..0ee9dd2 100644 --- a/locale/tr/LC_MESSAGES/pooler.po +++ b/locale/tr/LC_MESSAGES/pooler.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-08-18 03:46+0300\n" +"POT-Creation-Date: 2024-08-18 04:00+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,27 +17,27 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: src/config.c:130 +#: src/config.c:135 #, c-format msgid "Unknown configuration option: %s" msgstr "" -#: src/config.c:132 +#: src/config.c:137 #, c-format msgid "Unknown configuration option: %s/%s" msgstr "" -#: src/config.c:140 +#: src/config.c:145 #, fuzzy, c-format msgid "Failed to access the configuration file: %s" msgstr "Kayıt dosyasını açmak başarısız oldu: %s" -#: src/config.c:145 +#: src/config.c:150 #, fuzzy msgid "Failed to parse the configuration" msgstr "Kayıt dosyasını açmak başarısız oldu: %s" -#: src/config.c:152 +#: src/config.c:157 #, fuzzy, c-format msgid "Hostname not specified for the pool: %s" msgstr "Ana makine adı havuz konfigürasyonunda belirtilmedi, geçiliyor: %s" diff --git a/src/config.c b/src/config.c index 3e25c91..73d24d4 100644 --- a/src/config.c +++ b/src/config.c @@ -105,7 +105,12 @@ int config_load_handler(void *data, const char *_section, const char *_key, cons if (!config_pool_contains(section)) config_pool_add(section); - if (eq(key, "host")) { + if (eq(key, "name")) { + free(config.pools->name); + config.pools->name = strdup(value); + } + + else if (eq(key, "host")) { free(config.pools->host); config.pools->host = strdup(value); }