Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
StarlightIbuki committed Jan 9, 2024
1 parent 8b3baa9 commit 1083662
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion kong.conf.default
Expand Up @@ -680,7 +680,7 @@
#
# Example: `admin_listen = 127.0.0.1:8444 http2 ssl`

#status_listen = 127.0.0.7:8001 reuseport backlog=16384
#status_listen = 127.0.0.1:8001 reuseport backlog=16384
# Comma-separated list of addresses and ports on
# which the Status API should listen.
# The Status API is a read-only endpoint
Expand Down
2 changes: 1 addition & 1 deletion kong/templates/kong_defaults.lua
Expand Up @@ -28,7 +28,7 @@ proxy_listen = 0.0.0.0:8000 reuseport backlog=16384, 0.0.0.0:8443 http2 ssl reus
stream_listen = off
admin_listen = 127.0.0.1:8001 reuseport backlog=16384, 127.0.0.1:8444 http2 ssl reuseport backlog=16384
admin_gui_listen = 0.0.0.0:8002, 0.0.0.0:8445 ssl
status_listen = 127.0.0.7:8001 reuseport backlog=16384
status_listen = 127.0.0.1:8001 reuseport backlog=16384
cluster_listen = 0.0.0.0:8005
cluster_control_plane = 127.0.0.1:8005
cluster_cert = NONE
Expand Down
6 changes: 3 additions & 3 deletions spec/02-integration/08-status_api/04-config_spec.lua
Expand Up @@ -4,10 +4,10 @@ local cjson = require "cjson"
for _, strategy in helpers.all_strategies() do
describe("Status API - with strategy #" .. strategy, function()
it("default enable", function()
helpers.kong_exec("start -c spec/fixtures/default_status_listen.conf")
local client = helpers.http_client("127.0.0.1", 8007, 20000)
assert.truthy(helpers.kong_exec("start -c spec/fixtures/default_status_listen.conf"))
local client = helpers.http_client("127.0.0.1", 8001, 20000)
finally(function()
helpers.kill_all()
helpers.stop_kong()
client:close()
end)

Expand Down

0 comments on commit 1083662

Please sign in to comment.