You've already forked LibreTranslate
mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-11-29 22:08:02 +02:00
fix: make libretranslate with ipv6
This commit is contained in:
@@ -215,6 +215,10 @@ def main():
|
||||
if '--wsgi' in sys.argv:
|
||||
return app
|
||||
else:
|
||||
if args.debug and args.host == "*":
|
||||
# '::' will listen on both ipv6 and ipv4
|
||||
args.host = "::"
|
||||
|
||||
if args.debug:
|
||||
app.run(host=args.host, port=args.port)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user