mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-23 00:29:20 +02:00
Use send_handshake_query inside send_lazy_switch
This commit is contained in:
parent
ba90706429
commit
bbb604db06
15
src/client.c
15
src/client.c
|
@ -1317,21 +1317,12 @@ send_downenctest(int fd, char downenc, int variant)
|
||||||
static void
|
static void
|
||||||
send_lazy_switch(int fd, int userid)
|
send_lazy_switch(int fd, int userid)
|
||||||
{
|
{
|
||||||
char buf[512] = "o_____.";
|
char sw_lazy[] = { 'o', b32_5to8(userid), 'i', 0 };
|
||||||
buf[1] = b32_5to8(userid);
|
|
||||||
|
|
||||||
if (lazymode)
|
if (lazymode)
|
||||||
buf[2] = 'l';
|
sw_lazy[2] = 'l';
|
||||||
else
|
|
||||||
buf[2] = 'i';
|
|
||||||
|
|
||||||
buf[3] = b32_5to8((rand_seed >> 10) & 0x1f);
|
send_handshake_query(fd, sw_lazy);
|
||||||
buf[4] = b32_5to8((rand_seed >> 5) & 0x1f);
|
|
||||||
buf[5] = b32_5to8((rand_seed) & 0x1f);
|
|
||||||
rand_seed++;
|
|
||||||
|
|
||||||
strncat(buf, topdomain, 512 - strlen(buf));
|
|
||||||
send_query(fd, buf);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Reference in New Issue