Skip to content

refactor: use JoinHostPort for vnc tcp dialing - #541

Merged
tenthirtyam merged 2 commits into
mainfrom
refactor/optimize-vmx-encoding-buffer-writes
Aug 13, 2026
Merged

refactor: use JoinHostPort for vnc tcp dialing#541
tenthirtyam merged 2 commits into
mainfrom
refactor/optimize-vmx-encoding-buffer-writes

Conversation

@tenthirtyam

Copy link
Copy Markdown
Collaborator

Summary

Replace manual "%s:%d" address formatting with net.JoinHostPort when dialing VNC. This ensures host/port strings are constructed correctly (including IPv6 hosts) and avoids malformed TCP target addresses.

Type

  • fix: Bug Fix
  • feat: Feature or Enhancement
  • docs: Documentation
  • refactor: Refactoring
  • chore: Build, Dependencies, Workflows, etc.
  • other: Other (Please describe.)

Breaking Changes?

  • Yes, there are breaking changes.
  • No, there are no breaking changes.

Tests

  • Tests have been added or updated.
  • Tests have been completed.

Output:

Documentation

  • Documentation has been added or updated.

Issue References

Release Note

Additional Information

@tenthirtyam tenthirtyam added this to the v2.1.5 milestone Aug 13, 2026
@tenthirtyam tenthirtyam self-assigned this Aug 13, 2026
@tenthirtyam tenthirtyam added the refactor Refactor label Aug 13, 2026
@tenthirtyam
tenthirtyam requested a review from a team as a code owner August 13, 2026 12:34
@github-actions github-actions Bot added needs-review Needs Review size/xs Relative Sizing: Extra-Small labels Aug 13, 2026
@tenthirtyam
tenthirtyam force-pushed the refactor/optimize-vmx-encoding-buffer-writes branch from 384e598 to ced1323 Compare August 13, 2026 12:41
Write VMX entries directly into the output buffer instead of formatting an intermediate string first. This avoids unnecessary allocations while preserving the same encoded output.

Signed-off-by: Ryan Johnson <ryan@tenthirtyam.org>
Replace manual `"%s:%d"` address formatting with `net.JoinHostPort` when dialing VNC. This ensures host/port strings are constructed correctly (including IPv6 hosts) and avoids malformed TCP target addresses.

Signed-off-by: Ryan Johnson <ryan@tenthirtyam.org>
@tenthirtyam
tenthirtyam force-pushed the refactor/optimize-vmx-encoding-buffer-writes branch from ced1323 to 9d404e5 Compare August 13, 2026 12:43
@tenthirtyam
tenthirtyam merged commit b7ae35e into main Aug 13, 2026
10 checks passed
@tenthirtyam
tenthirtyam deleted the refactor/optimize-vmx-encoding-buffer-writes branch August 13, 2026 12:44
@tenthirtyam tenthirtyam removed the needs-review Needs Review label Aug 13, 2026
@github-actions

Copy link
Copy Markdown

This functionality has been released in v2.1.5 of the plugin.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Refactor size/xs Relative Sizing: Extra-Small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant