Skip to content

Fix local IPv6 and device binding - #324

Merged
saghul merged 1 commit into
saghul:masterfrom
dimbleby:set_local_ip
Aug 20, 2026
Merged

Fix local IPv6 and device binding#324
saghul merged 1 commit into
saghul:masterfrom
dimbleby:set_local_ip

Conversation

@dimbleby

Copy link
Copy Markdown
Contributor

Fairly self-explanatory. Without the fixes, the tests fail with:

TypeError: initializer for ctype 'char *' must be a bytes or list or tuple, not str

and

TypeError: initializer for ctype 'unsigned char *' must be a pointer to same type, not cdata 'struct ares_in6_addr *'


Pass IPv6 addresses to c-ares as byte pointers and encode device names before calling the CFFI API.

Add regression tests for both local binding methods.

Pass IPv6 addresses to c-ares as byte pointers and encode device names before calling the CFFI API.

Add regression tests for both local binding methods.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@saghul
saghul merged commit 46b015d into saghul:master Aug 20, 2026
116 checks passed
@saghul

saghul commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Thanks!

@dimbleby
dimbleby deleted the set_local_ip branch August 20, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants