fix(peering): pin gRPC dial target to scheme-appropriate port (#140) #141

Merged
Cordy merged 1 commit from fix/peering-dial-port into main 2026-08-09 00:46:14 +00:00
Owner

Closes #140. Client.dial passed u.Host (portless for bare URLs) to grpc.NewClient, whose resolver defaults to 443 regardless of scheme — every plain-HTTP LAN peer dialed 443. New grpcTarget(u): explicit port wins, else http→80, https→443. Unit test over all four cases. Found live on the first real A↔B transfer; the loopback test injects Client.Dial and never exercised this path.

Closes #140. `Client.dial` passed `u.Host` (portless for bare URLs) to `grpc.NewClient`, whose resolver defaults to 443 regardless of scheme — every plain-HTTP LAN peer dialed 443. New `grpcTarget(u)`: explicit port wins, else http→80, https→443. Unit test over all four cases. Found live on the first real A↔B transfer; the loopback test injects `Client.Dial` and never exercised this path.
fix(peering): pin gRPC dial target to scheme-appropriate port for portless URLs (#140)
All checks were successful
ci / test-and-build (pull_request) Successful in 31s
f2a8e52ad5
Cordy merged commit b9a8e5aca2 into main 2026-08-09 00:46:14 +00:00
Cordy deleted branch fix/peering-dial-port 2026-08-09 00:46:18 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#141
No description provided.