Skip to content

Commit

Permalink
Allow IPv6 for Livebook Teams
Browse files Browse the repository at this point in the history
  • Loading branch information
aleDsz committed Jul 3, 2024
1 parent 4a34991 commit 935e484
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/livebook/teams/requests.ex
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ defmodule Livebook.Teams.Requests do
defp build_req() do
Req.new(
base_url: Livebook.Config.teams_url(),
inet6: true,
headers: [{"x-lb-version", Livebook.Config.app_version()}]
)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/livebook/teams/web_socket.ex
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ defmodule Livebook.Teams.WebSocket do
if http_scheme == :https do
[cacerts: :public_key.cacerts_get()]
else
[]
[inet6: true]
end

opts = [protocols: [:http1], transport_opts: transport_opts]
Expand Down

0 comments on commit 935e484

Please sign in to comment.