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.
This commit is contained in:
Richard Bowman 2020-04-23 10:42:49 +01:00
parent bcd6f426cc
commit 6213620031

View file

@ -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)