bohea / sanic-limiter

Provides rate limiting features for Sanic. Supports in-memory, redis and memcache as storage.
MIT License
85 stars 14 forks source link

Cgoosen sanic 19.6.3 fix #14

Closed c-goosen closed 5 years ago

c-goosen commented 5 years ago

Not sure if this is only related to changes in Sanic 19.6.3, but if no proxy exists, request.remote_addr will fail.

Fix checks if attr is set, otherwise uses request.ip

c-goosen commented 5 years ago

@bohea

c-goosen commented 5 years ago

Excellent, thank you.