hamishforbes / lua-resty-upstream

Upstream connection load balancing and failover module for Openresty
MIT License
117 stars 26 forks source link

Bug in down and up hosts #6

Closed dant4z closed 10 years ago

dant4z commented 10 years ago

Always returns host not found, because string compared with number and always returns nil

hamishforbes commented 10 years ago

Hey, I've committed a change that should resolve this by forcing host and pool IDs to be strings when manipulated via the api module.

Rather than changing the way the core socket module works, because I don't want to restrict the way people use the raw get_pools and save_pools functions from the socket module.