Skip to content

Commit

Permalink
change af_inet to happy_eyeballs
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonoughe committed Mar 11, 2023
1 parent c11a6b0 commit 7ec0b3d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed
- Connections in dual-stack or IPv6-only networks should succeed. IPv6 support requires that the bridge accepts IPv6 connections, which is not the case for Caséta.

## [0.18.1] - 2023-02-03

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion pylutron_caseta/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ async def _connect(
resource.port or 8081,
server_hostname="",
ssl=ssl_context,
family=socket.AF_INET,
happy_eyeballs_delay=0.25,
)
run = asyncio.ensure_future(protocol.run())

Expand Down
4 changes: 2 additions & 2 deletions pylutron_caseta/pairing.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ async def _async_generate_certificate(
8083,
server_hostname="",
ssl=ssl_context,
family=socket.AF_INET,
happy_eyeballs_delay=0.25,
)

json_socket = JsonSocket(reader, writer)
Expand Down Expand Up @@ -201,7 +201,7 @@ async def _async_verify_certificate(server_addr, signed_ssl_context):
8081,
server_hostname="",
ssl=signed_ssl_context,
family=socket.AF_INET,
happy_eyeballs_delay=0.25,
)
json_socket = JsonSocket(reader, writer)

Expand Down
2 changes: 1 addition & 1 deletion pylutron_caseta/smartbridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async def _connect():
port,
server_hostname="",
ssl=ssl_context,
family=socket.AF_INET,
happy_eyeballs_delay=0.25,
)
return res

Expand Down

0 comments on commit 7ec0b3d

Please sign in to comment.