X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=charts%2Fresources%2Fscripts%2Finit%2Fo2api_start.sh;h=4581db5b1f72f9eefdd8d12571555eeff5f83e20;hb=refs%2Fchanges%2F56%2F12756%2F1;hp=243d86cbb8e3beb727d614fd3bee6f5ecaae66c7;hpb=5e86598b98686e26818749c868cdb929dfff7d87;p=pti%2Fo2.git diff --git a/charts/resources/scripts/init/o2api_start.sh b/charts/resources/scripts/init/o2api_start.sh index 243d86c..4581db5 100644 --- a/charts/resources/scripts/init/o2api_start.sh +++ b/charts/resources/scripts/init/o2api_start.sh @@ -1,4 +1,4 @@ -# Copyright (C) 2021-2022 Wind River Systems, Inc. +# Copyright (C) 2021-2024 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -14,6 +14,7 @@ #!/bin/bash -gunicorn -b 0.0.0.0:80 o2app.entrypoints.flask_application:app --certfile /configs/server.crt --keyfile /configs/server.key +# The gunicorn start with [::] to listen on both IPv4 and IPv6 +gunicorn -b [::]:80 o2app.entrypoints.flask_application:app --certfile /configs/server.crt --keyfile /configs/server.key sleep infinity