From f63c88e82d47e13e55e27b4279d95db7d86c7a9c Mon Sep 17 00:00:00 2001 From: Pierre Avital Date: Fri, 15 Sep 2023 15:59:33 +0200 Subject: [PATCH] fix typo that broke everything --- src/net/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/session.c b/src/net/session.c index e00988f10..2f2b0c93e 100644 --- a/src/net/session.c +++ b/src/net/session.c @@ -65,7 +65,7 @@ int8_t _z_open(_z_session_t *zn, _z_config_t *config) { if (config != NULL) { _z_str_array_t locators = _z_str_array_empty(); char *connect = _z_config_get(config, Z_CONFIG_CONNECT_KEY); - char *listen = _z_config_get(config, Z_CONFIG_CONNECT_KEY); + char *listen = _z_config_get(config, Z_CONFIG_LISTEN_KEY); if (connect == NULL && listen == NULL) { // Scout if peer is not configured opt_as_str = _z_config_get(config, Z_CONFIG_SCOUTING_WHAT_KEY); if (opt_as_str == NULL) {