jcs
/subtext
/amendments
/512
main: Hook up ipdb
jcs made amendment 512 about 1 year ago
--- main.c Wed Apr 19 00:34:06 2023
+++ main.c Wed Jun 14 22:39:59 2023
@@ -124,6 +124,8 @@ main(void)
telnet_init();
if (db->config.modem_port)
serial_init();
+ if (db->config.ipdb_path[0])
+ db->ipdb = ipdb_open(db->config.ipdb_path);
blanker_last_blank = Time;
@@ -270,6 +272,8 @@ handle_exit(void)
telnet_atexit();
if (db->config.modem_port)
serial_atexit();
+ if (db->ipdb)
+ ipdb_close(&db->ipdb);
db_close(db);
}