Closed juergenpabel closed 11 months ago
You should execute tests locally before pushing...
You should execute tests locally before pushing...
Yeah...you just shoot yourself in the foot it you think "it worked fine in my private repo, I'll just copy this over to github and than create the PR". Sorry for that.
By the way: how about changing the default listen address from any to localhost? I haven't done that in order to not introduce a breaking change (at least for those with restapi clients on their network) - but from a security perspective this would be reasonable.
I merged your first PR. This one got a conflict. Need to be rebased and fix. Thanks.
Still a conflict. And some comments not addressed. You should have rebased instead of merging. You'll not have a linear history.
This PR adds a config option for the REST API to (optionally) bind to a spefic IP adress only (instead of on all interfaces).
The new config option is named "listen", so that an excert of the config might look like:
I've also adapted the FlaskAPI instantiation in Tests/test_api/base.py, so if tests were to use this...it would work.