summaryrefslogtreecommitdiff
path: root/cfgdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'cfgdir.c')
-rw-r--r--cfgdir.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/cfgdir.c b/cfgdir.c
index c2870ab..120fa40 100644
--- a/cfgdir.c
+++ b/cfgdir.c
@@ -25,6 +25,7 @@ enum scfg_keys {
SCFG_KEY_PORT,
SCFG_KEY_LOCAL,
SCFG_KEY_REMOTE,
+ SCFG_KEY_IDLE,
};
struct cfg_key_value_map scfg_key_map[] = {
@@ -49,6 +50,10 @@ struct cfg_key_value_map scfg_key_map[] = {
.key_value = SCFG_KEY_REMOTE,
.value_type = CFG_VAL_TYPE_ADDRS,
}, {
+ .key_name = "idle",
+ .key_value = SCFG_KEY_IDLE,
+ .value_type = CFG_VAL_TYPE_UINT16,
+ }, {
.key_name = NULL,
.key_value = SCFG_KEY_INVALID,
.value_type = CFG_VAL_TYPE_INVALID,
@@ -116,6 +121,11 @@ scfg_parse(struct cfg *cfg, struct server *scfg)
break;
}
+ case SCFG_KEY_IDLE:
+ if (!server_set_idle(cfg, scfg, value.uint16))
+ return;
+ break;
+
case SCFG_KEY_INVALID:
default:
break;