Fix error messages on deprecated mode

This commit is contained in:
Jianqing Wang 2016-03-29 12:09:52 +08:00
parent fe0843be88
commit 199600af73
1 changed files with 4 additions and 5 deletions

View File

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