Skip to content

Commit 252c0f6

Browse files
committed
Make raft fill in the address family for peer addresses.
1 parent f77065d commit 252c0f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/raft.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ bool raft_peer_up(raft_t r, int id, char *host, int port, bool self) {
292292
);
293293
return false;
294294
}
295+
p->addr.sin_family = AF_INET;
295296
p->addr.sin_port = htons(p->port);
296297

297298
if (self) {

0 commit comments

Comments
 (0)