Skip to content

Commit

Permalink
Merge pull request #346 from openshift-cherrypick-robot/cherry-pick-3…
Browse files Browse the repository at this point in the history
…44-to-18.0.0-proposed

[18.0.0-proposed] Add missing square brackets in IPv6 ALLOWED_HOSTS
  • Loading branch information
openshift-merge-bot[bot] authored Jul 11, 2024
2 parents 2f24ebe + fde6bc0 commit 0bca6ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/horizon/config/local_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def get_pod_ip():
s.close()
s = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM)
s.connect(("{{ .horizonEndpointUrl }}", 80))
return s.getsockname()[0]
return "[{}]".format(s.getsockname()[0])
finally:
s.close()

Expand Down

0 comments on commit 0bca6ee

Please sign in to comment.