Merge remote-tracking branch 'guus/1.1' into thkr-1.1-ponyhof
This commit is contained in:
commit
6e6bc9f443
1 changed files with 2 additions and 1 deletions
|
@ -876,7 +876,8 @@ bool ack_h(connection_t *c, const char *request) {
|
|||
c->edge = new_edge();
|
||||
c->edge->from = myself;
|
||||
c->edge->to = n;
|
||||
sockaddr_setport(&c->address, hisport);
|
||||
sockaddrcpy(&c->edge->address, &c->address);
|
||||
sockaddr_setport(&c->edge->address, hisport);
|
||||
sockaddr_t local_sa;
|
||||
socklen_t local_salen = sizeof local_sa;
|
||||
if (getsockname(c->socket, &local_sa.sa, &local_salen) < 0)
|
||||
|
|
Loading…
Reference in a new issue