From 0393b3dea5ae3178383677f4ace5f6ba70a4a8c3 Mon Sep 17 00:00:00 2001 From: Xiaochen Wang Date: Wed, 27 Dec 2023 21:55:38 +0800 Subject: [PATCH] fix test cases failure --- kong/globalpatches.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kong/globalpatches.lua b/kong/globalpatches.lua index e97ce467a0b3..114775b6a912 100644 --- a/kong/globalpatches.lua +++ b/kong/globalpatches.lua @@ -549,7 +549,7 @@ return function(options) end end - return f(sock, host, port, opts) + return f(sock, host, port, port and opts or nil) end local function tcp_resolve_connect(sock, host, port, opts)