mirror of
https://github.com/yarrick/iodine.git
synced 2025-04-11 21:10:56 +00:00
---
This commit is contained in:
parent
1f1466c194
commit
c721d0c309
1 changed files with 5 additions and 6 deletions
|
@ -818,10 +818,9 @@ handle_null_request(int tun_fd, int dns_fd, struct query *q, int domain_len)
|
||||||
read = snprintf(out, sizeof(out), "%s-%s-%d-%d-%s-%s-%d",
|
read = snprintf(out, sizeof(out), "%s-%s-%d-%d-%s-%s-%d",
|
||||||
tmp[0], tmp[1], my_mtu, netmask, server6, client6,
|
tmp[0], tmp[1], my_mtu, netmask, server6, client6,
|
||||||
netmask6);
|
netmask6);
|
||||||
}
|
} else
|
||||||
|
read = snprintf(out, sizeof(out), "%s-%s-%d-%d", tmp[0],
|
||||||
read = snprintf(out, sizeof(out), "%s-%s-%d-%d",
|
tmp[1], my_mtu, netmask);
|
||||||
tmp[0], tmp[1], my_mtu, netmask);
|
|
||||||
|
|
||||||
//printf("%s\n", out);
|
//printf("%s\n", out);
|
||||||
|
|
||||||
|
@ -2299,7 +2298,7 @@ main(int argc, char **argv)
|
||||||
srand(time(NULL));
|
srand(time(NULL));
|
||||||
fw_query_init();
|
fw_query_init();
|
||||||
|
|
||||||
while ((choice = getopt(argc, argv, "vcsfhD6u:t:d:m:l:p:n:b:P:z:F:")) != -1) {
|
while ((choice = getopt(argc, argv, "6vcsfhDu:t:d:m:l:p:n:b:P:z:F:")) != -1) {
|
||||||
switch(choice) {
|
switch(choice) {
|
||||||
case 'v':
|
case 'v':
|
||||||
version();
|
version();
|
||||||
|
@ -2371,7 +2370,7 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
check_superuser(usage);
|
check_superuser(usage);
|
||||||
|
|
||||||
if (argc != 3)
|
if (argc != 2 + v6)
|
||||||
usage();
|
usage();
|
||||||
|
|
||||||
netsize = strchr(argv[0], '/');
|
netsize = strchr(argv[0], '/');
|
||||||
|
|
Loading…
Add table
Reference in a new issue