Fix error messages on deprecated mode
This commit is contained in:
parent
fe0843be88
commit
199600af73
|
@ -1870,12 +1870,11 @@ 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,7 +2119,7 @@ int parse_config(const StringRef &opt, const StringRef &optarg,
|
|||
|
||||
return 0;
|
||||
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";
|
||||
return -1;
|
||||
case SHRPX_OPTID_INSECURE:
|
||||
|
|
Loading…
Reference in New Issue