You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sh...@apache.org on 2021/07/19 19:26:35 UTC
[apisix] branch master updated: fix: host pattern for nacos host
(#4627)
This is an automated email from the ASF dual-hosted git repository.
shuyangw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 64923b3 fix: host pattern for nacos host (#4627)
64923b3 is described below
commit 64923b3190384512a85f48c425b3ace0e5b32467
Author: 罗泽轩 <sp...@gmail.com>
AuthorDate: Tue Jul 20 03:26:25 2021 +0800
fix: host pattern for nacos host (#4627)
Signed-off-by: spacewander <sp...@gmail.com>
---
apisix/discovery/nacos.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apisix/discovery/nacos.lua b/apisix/discovery/nacos.lua
index ab661f2..a721dec 100644
--- a/apisix/discovery/nacos.lua
+++ b/apisix/discovery/nacos.lua
@@ -42,7 +42,7 @@ local instance_list_path = 'ns/instance/list?healthyOnly=true&serviceName='
local events
local events_list
-local host_pattern = [[^http(s)?:\/\/[a-zA-Z0-9-_.:\@]+$]]
+local host_pattern = [[^http(s)?:\/\/[a-zA-Z0-9-_.:\@%]+$]]
local prefix_pattern = [[^[\/a-zA-Z0-9-_.]+$]]
local schema = {
type = 'object',