unix_sock: Allow escaping of ':' in config

This commit is contained in:
Martin Piatka
2022-08-15 12:11:35 +02:00
parent 3257e5a036
commit 00390f8a7c

View File

@@ -135,7 +135,7 @@ static void *display_unix_sock_init(struct module *parent,
}
while(!fmt_sv.empty()){
auto tok = tokenize(fmt_sv, ':');
auto tok = tokenize(fmt_sv, ':', '"');
auto key = tokenize(tok, '=');
if(key == "help"){
@@ -158,6 +158,7 @@ static void *display_unix_sock_init(struct module *parent,
s->ipc_frame.reset(ipc_frame_new());
s->frame_writer.reset(ipc_frame_writer_new(socket_path.c_str()));
if(!s->frame_writer){
log_msg(LOG_LEVEL_ERROR, MOD_NAME "Unable to init ipc writer for path %s\n", socket_path.c_str());
return nullptr;
}