bug: why does host proxy_write not support such as ip+port
Issue description
when I set host of proxy_wiite, tell me Invalid plugin data does not match the regex pattern ^[0-9a-zA-Z-.]+$.
Environment
- apisix version 2.1
- apisix dashboard version: 2.2
- OS: centos 7.8
- OpenResty openresty/1.19.3.1
Minimal test code / Steps to reproduce the issue
1. 2. 3.
What's the actual result? (including assertion message & call stack if applicable)
What's the expected result?
Are you talking about the proxy_rewrite plugin? See if the format of the host you set is incorrect, the host you set needs to meet the prompt the regex pattern ^[0-9a-zA-Z-.]+$.
For example: 192.168.12.34.
Now the host cannot contain :, but the document did not explain it, I think is a good feat. @spacewander
ping @jeesk
Are you talking about the
proxy_rewriteplugin? See if the format of thehostyou set is incorrect, thehostyou set needs to meet the prompt the regex pattern ^[0-9a-zA-Z-.]+$. For example:192.168.12.34.
yes
we should support this case. @jeesk would you like to submit a PR about this issue?