Skip to content

Commit

Permalink
Merge pull request #344 from olliewalsh/ipv6_allowed_hosts
Browse files Browse the repository at this point in the history
Add missing square brackets in IPv6 ALLOWED_HOSTS
  • Loading branch information
olliewalsh authored Jul 11, 2024
2 parents fd58216 + 4c923dc commit add443e
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 add443e

Please sign in to comment.