Are you adding test cases for this?
Otherwise, :thumbsup:
Kinda hard to emulate coming from a different IP in the tests no?
You can mock the flask.request to give a different remote_addr? But sure, as said the current code looks good enough to me.
You can mock the flask.request to give a different remote_addr?
Gave it a try but it's not straight forward.
Let's merge, thanks for the review! :)
7 new commits added
oh, grmbl the new PR is merged into this one, let me re-fix this
1 new commit added
Pull-Request has been merged by pingou