diff options
author | Steven Luong <sluong@cisco.com> | 2024-10-07 12:02:45 -0700 |
---|---|---|
committer | Steven Luong <sluong@cisco.com> | 2024-10-07 12:09:57 -0700 |
commit | 8d09a70ee87e777dabf2251e517f5cd63ebc269b (patch) | |
tree | e8b2ea386a1fe3412e89b9c84dd404ae40266cd8 | |
parent | a3efc38e155eb3eccc674fbd06dfcff155220b42 (diff) |
hsa: cannot delete/unlisten default uri
Although it is rare that one wants to remove the default uri listener,
we should still support it.
The problem is that we strip the null character on unformatting the input.
We should not add a null character on formatting the default uri.
Type: fix
Change-Id: I08520dbd2a2448639ce023f9fd75555bc620e7ee
Signed-off-by: Steven Luong <sluong@cisco.com>
-rw-r--r-- | src/plugins/hs_apps/http_cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/hs_apps/http_cli.c b/src/plugins/hs_apps/http_cli.c index 18b57f6c29d..d5c94044959 100644 --- a/src/plugins/hs_apps/http_cli.c +++ b/src/plugins/hs_apps/http_cli.c @@ -804,7 +804,7 @@ hcs_create_command_fn (vlib_main_t *vm, unformat_input_t *input, start_server: if (hcm->uri == 0) - hcm->uri = format (0, "tcp://0.0.0.0/80%c", 0); + hcm->uri = format (0, "tcp://0.0.0.0/80"); if (hcm->app_index != (u32) ~0) { |