Skip to content

Commit eb7d910

Browse files
committed
add toxme.se to dns3 server list
1 parent 85af9f5 commit eb7d910

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/dns.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@
4040
#include "misc_tools.h"
4141

4242
#define MAX_DNS_REQST_SIZE 256
43-
#define NUM_DNS3_SERVERS 1 /* must correspond to number of items in dns3_servers array */
43+
#define NUM_DNS3_SERVERS 2 /* must correspond to number of items in dns3_servers array */
4444
#define TOX_DNS3_TXT_PREFIX "v=tox3;id="
4545
#define DNS3_KEY_SZ 32
4646

47+
/* TODO: process keys from key file instead of hard-coding like a noob */
4748
static struct dns3_server {
4849
uint8_t *name;
4950
uint8_t key[DNS3_KEY_SZ];
@@ -55,6 +56,13 @@ static struct dns3_server {
5556
0x1C, 0x23, 0x3C, 0xC8, 0x57, 0xFB, 0x36, 0x5C, 0x56, 0xE8, 0x39, 0x27, 0x37, 0x46, 0x2A, 0x12
5657
}
5758
},
59+
{
60+
"toxme.se",
61+
{
62+
0x5D, 0x72, 0xC5, 0x17, 0xDF, 0x6A, 0xEC, 0x54, 0xF1, 0xE9, 0x77, 0xA6, 0xB6, 0xF2, 0x59, 0x14,
63+
0xEA, 0x4C, 0xF7, 0x27, 0x7A, 0x85, 0x02, 0x7C, 0xD9, 0xF5, 0x19, 0x6D, 0xF1, 0x7E, 0x0B, 0x13
64+
}
65+
},
5866
};
5967

6068
static struct _thread_data {

0 commit comments

Comments
 (0)