aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_upstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_upstream.c')
-rw-r--r--src/lua/lua_upstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_upstream.c b/src/lua/lua_upstream.c
index 31ced8103..0b2739903 100644
--- a/src/lua/lua_upstream.c
+++ b/src/lua/lua_upstream.c
@@ -184,7 +184,7 @@ lua_upstream_list_create (lua_State *L)
def = luaL_checkstring (L, 1);
if (def) {
if (lua_gettop (L) >= 2) {
- default_port = luaL_checkinteger (L, 2);
+ default_port = luaL_checknumber (L, 2);
}
tokens = g_strsplit_set (def, ",;", 0);