summaryrefslogtreecommitdiff
path: root/src/core/networks.c
diff options
context:
space:
mode:
authorinfo@mode42.com <info@mode42.com>2026-08-09 12:22:53 +0000
committerinfo@mode42.com <info@mode42.com>2026-08-09 12:22:53 +0000
commite1730d8012fca0a712de588285342f7ad10dd804 (patch)
treeb351ae5da04fe10a211be772636b2bf8de6d49dd /src/core/networks.c
parenta989bd16c40e04bba5a5404b0ef0cd22f19d2707 (diff)
now including entertain/chess
Diffstat (limited to 'src/core/networks.c')
-rw-r--r--src/core/networks.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/core/networks.c b/src/core/networks.c
index c52554d..f61479e 100644
--- a/src/core/networks.c
+++ b/src/core/networks.c
@@ -54,6 +54,7 @@ void hybbx_networks_config_defaults(hybbx_networks_config_t *networks)
networks->websocket = 0;
networks->circuit = 1;
networks->mains_proxy = 0;
+ networks->entertain = 0;
}
void hybbx_networks_config_apply(hybbx_networks_config_t *networks,
@@ -106,8 +107,13 @@ void hybbx_networks_config_apply(hybbx_networks_config_t *networks,
"mains_proxy", 0);
}
+ if (networks_has_key(config, "entertain")) {
+ networks->entertain = hybbx_config_get_bool(config, "networks",
+ "entertain", 0);
+ }
+
hybbx_log_info("[networks] telnet=%s ssh=%s ax25=%s baycom=%s ardop=%s "
- "crdop=%s websocket=%s circuit=%s mains_proxy=%s",
+ "crdop=%s websocket=%s circuit=%s mains_proxy=%s entertain=%s",
hybbx_bool_to_string(networks->telnet),
hybbx_bool_to_string(networks->ssh),
hybbx_bool_to_string(networks->ax25),
@@ -116,7 +122,8 @@ void hybbx_networks_config_apply(hybbx_networks_config_t *networks,
hybbx_bool_to_string(networks->crdop),
hybbx_bool_to_string(networks->websocket),
hybbx_bool_to_string(networks->circuit),
- hybbx_bool_to_string(networks->mains_proxy));
+ hybbx_bool_to_string(networks->mains_proxy),
+ hybbx_bool_to_string(networks->entertain));
}
int hybbx_networks_is_static_transport(const char *plugin_name)
@@ -187,5 +194,9 @@ int hybbx_networks_transport_wanted(const char *plugin_name,
return networks->mains_proxy;
}
+ if (str_ieq(plugin_name, "entertain")) {
+ return networks->entertain;
+ }
+
return 0;
}
git clone -b <branch> https://cgit.mode42.com/<repo>.git
git clone -b <branch> git://cgit.mode42.com/<repo>.git

info@mode42.com