mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-13 15:47:15 +03:00
fail gracefully if target protocol decription is incomplete
This commit is contained in:
parent
21f524f711
commit
dd900ebf3e
@ -333,6 +333,9 @@ static int config_protocols(config_t *config, struct proto **prots)
|
||||
setup_sni_alpn(p, prot);
|
||||
}
|
||||
|
||||
} else {
|
||||
fprintf(stderr, "line %d: Illegal protocol description (missing name, host or port)\n", config_setting_source_line(prot));
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user