Fixed reconnect issue
This commit is contained in:
parent
55bbf89f60
commit
4010ddcde3
1 changed files with 4 additions and 4 deletions
|
@ -585,6 +585,10 @@ int main(int argc, const char* argv[])
|
|||
outgoingBuffer->length = htole16(SHA256_DIGEST_LENGTH);
|
||||
|
||||
sendto(uplinkHandle, outgoingBuffer, sizeof(struct RewindData) + SHA256_DIGEST_LENGTH, 0, serverAddress->ai_addr, serverAddress->ai_addrlen);
|
||||
|
||||
socketOptionValue = true;
|
||||
setsockopt(remoteHandle, IPPROTO_IP, IP_PKTINFO, &socketOptionValue, sizeof(socketOptionValue));
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -797,10 +801,6 @@ int main(int argc, const char* argv[])
|
|||
break;
|
||||
}
|
||||
|
||||
// SIGHUP
|
||||
|
||||
socketOptionValue = true;
|
||||
setsockopt(remoteHandle, IPPROTO_IP, IP_PKTINFO, &socketOptionValue, sizeof(socketOptionValue));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue