Skip to content

Commit

Permalink
Move FAQ link up
Browse files Browse the repository at this point in the history
  • Loading branch information
gjedeer committed Mar 24, 2018
1 parent 62d56bb commit 826ef1b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ The Tuntox Server can optionally allow only whitelisted ToxIDs. Supply *-i youra

Tuntox is piggybacking on the Tox protocol, which itself has not been audited by security researchers. Tox crypto has been implemented with libsodium (which is based on Bernstein's NaCl) and thus uses the ecliptic curve 25519 for key exchange and salsa20 for stream encryption. According to the author's best knowledge, libsodium makes it as hard as possible to get crypto wrong, but we don't know until Tox has been audited.

## FAQ

[yes, there is one](FAQ.md)

## License

Sorry about GPLv3 - both toxcore and utox (from which I borrowed some code) are GPLv3.

Thank you to the toxcore and utox developers without whom this program would never exist.

Thank you Mr_4551 for your help and motivation.

## FAQ

[yes, there is one](FAQ.md)
8 changes: 8 additions & 0 deletions client.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ int do_client_loop(uint8_t *tox_id_str)
unsigned char tox_packet_buf[PROTOCOL_MAX_PACKET_SIZE];
unsigned char tox_id[TOX_ADDRESS_SIZE];
uint32_t friendnumber = 0;
TOX_CONNECTION last_friend_connection_status = TOX_CONNECTION_NONE;
time_t last_friend_connection_status_received = 0;
struct timeval tv;
fd_set fds;
static time_t invitation_sent_time = 0;
Expand Down Expand Up @@ -357,6 +359,8 @@ int do_client_loop(uint8_t *tox_id_str)
}
else
{
last_friend_connection_status_received = time(NULL);

if(friend_connection_status != TOX_CONNECTION_NONE)
{
const char* status = readable_connection_status(friend_connection_status);
Expand Down Expand Up @@ -570,6 +574,10 @@ int do_client_loop(uint8_t *tox_id_str)
}

fds = client_master_fdset;

if(time(NULL) - last_friend_connection_status_received > 60)
{
}
}
break;
case CLIENT_STATE_SHUTDOWN:
Expand Down

0 comments on commit 826ef1b

Please sign in to comment.