fix(peering): pin gRPC dial target to scheme-appropriate port (#140) #141
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/peering-dial-port"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #140.
Client.dialpassedu.Host(portless for bare URLs) togrpc.NewClient, whose resolver defaults to 443 regardless of scheme — every plain-HTTP LAN peer dialed 443. NewgrpcTarget(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 injectsClient.Dialand never exercised this path.