Commit 079f867d authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

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

parent d1bc3c89
...@@ -1585,6 +1585,12 @@ int main(int argc, char **argv) ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment