From 62136200310c533b8837c2f5a0f13a07b8d52b94 Mon Sep 17 00:00:00 2001 From: Richard Bowman Date: Thu, 23 Apr 2020 10:42:49 +0100 Subject: [PATCH] Enable ipv6 Setting the listen address to :: puts flask into ipv6 mode. This makes it compatible with ipv6 and, thanks to the system automatically translating ipv4 into ipv6, it is completely compatible with ipv4 as well. --- openflexure_microscope/api/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openflexure_microscope/api/app.py b/openflexure_microscope/api/app.py index 52ca01ab..521776e2 100644 --- a/openflexure_microscope/api/app.py +++ b/openflexure_microscope/api/app.py @@ -175,4 +175,4 @@ if __name__ == "__main__": from labthings.server.wsgi import Server server = Server(app) - server.run(host="0.0.0.0", port=5000, debug=False, zeroconf=True) + server.run(host="::", port=5000, debug=False, zeroconf=True)