Skip to content

Commit

Permalink
Merge pull request #375 from 3scale/fix-redis-url
Browse files Browse the repository at this point in the history
fixes typo to extract Redis port from REDIS_URL
  • Loading branch information
mikz authored Sep 14, 2017
2 parents f030d85 + 8c630f1 commit f7c6ab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apicast/src/threescale_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function _M.connect_redis(options)
opts.timeout = options and options.timeout or redis_conf.timeout

local host = opts.host or env.get('REDIS_HOST') or "127.0.0.1"
local port = opts.prot or env.get('REDIS_PORT') or 6379
local port = opts.port or env.get('REDIS_PORT') or 6379

local red = redis:new()

Expand Down

0 comments on commit f7c6ab0

Please sign in to comment.