Commit b7ae35e
authored
refactor: use
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.
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>JoinHostPort for vnc tcp dialing (#541)1 parent b4dbafb commit b7ae35e
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
0 commit comments