Merge branch 'tsing-patch-1'

This commit is contained in:
Tatsuhiro Tsujikawa 2016-03-29 22:11:58 +09:00
commit 1fef49aaa4
1 changed files with 8 additions and 6 deletions

View File

@ -1870,12 +1870,14 @@ int parse_config(const StringRef &opt, const StringRef &optarg,
return 0;
case SHRPX_OPTID_HTTP2_BRIDGE:
LOG(ERROR) << opt << ": deprecated. Use backend=<addr>,<port>;;proto=h2 "
"and backend-tls";
LOG(ERROR) << opt
<< ": deprecated. Use backend=<addr>,<port>;;proto=h2;tls";
return -1;
case SHRPX_OPTID_CLIENT_PROXY:
LOG(ERROR) << opt << ": deprecated. Use http2-proxy, frontend-no-tls, "
"backend=<addr>,<port>;;proto=h2 and backend-tls";
LOG(ERROR)
<< opt
<< ": deprecated. Use http2-proxy, frontend=<addr>,<port>;no-tls "
"and backend=<addr>,<port>;;proto=h2;tls";
return -1;
case SHRPX_OPTID_ADD_X_FORWARDED_FOR:
mod_config()->http.xff.add = util::strieq_l("yes", optarg);
@ -2120,8 +2122,8 @@ int parse_config(const StringRef &opt, const StringRef &optarg,
return 0;
case SHRPX_OPTID_CLIENT:
LOG(ERROR) << opt << ": deprecated. Use frontend-no-tls, "
"backend=<addr>,<port>;;proto=h2 and backend-tls";
LOG(ERROR) << opt << ": deprecated. Use frontend=<addr>,<port>;no-tls, "
"backend=<addr>,<port>;;proto=h2;tls";
return -1;
case SHRPX_OPTID_INSECURE:
mod_config()->tls.insecure = util::strieq_l("yes", optarg);