nghttp: Ignore -u if --no-tls is not given

This commit is contained in:
Tatsuhiro Tsujikawa 2013-08-03 19:08:52 +09:00
parent d1bc3c89a7
commit 079f867d68
1 changed files with 6 additions and 0 deletions

View File

@ -1585,6 +1585,12 @@ int main(int argc, char **argv)
set_color_output(isatty(fileno(stdout))); set_color_output(isatty(fileno(stdout)));
if(!config.no_tls && config.upgrade) {
std::cerr << "Warning: -u is ignored because --no-tls is not given."
<< std::endl;
config.upgrade = false;
}
struct sigaction act; struct sigaction act;
memset(&act, 0, sizeof(struct sigaction)); memset(&act, 0, sizeof(struct sigaction));
act.sa_handler = SIG_IGN; act.sa_handler = SIG_IGN;