Compare commits
3 Commits
v0.0.56-mu
...
v0.0.57-mu
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3363e219a7 | ||
|
|
00ee23b0b6 | ||
|
|
1286b0f69e |
2
mud
2
mud
Submodule mud updated: 67f1f6abc2...df67357d36
17
src/main.c
17
src/main.c
@@ -252,7 +252,11 @@ int main (int argc, char **argv)
|
|||||||
long time_tolerance = 0;
|
long time_tolerance = 0;
|
||||||
|
|
||||||
int v4 = 1;
|
int v4 = 1;
|
||||||
int v6 = 1;
|
int v6 = 0;
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
|
v6 = 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
struct option opts[] = {
|
struct option opts[] = {
|
||||||
{ "host", &host, option_str },
|
{ "host", &host, option_str },
|
||||||
@@ -281,13 +285,18 @@ int main (int argc, char **argv)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (option_is_set(opts, "v4only"))
|
if (option_is_set(opts, "v4only")) {
|
||||||
|
v4 = 1;
|
||||||
v6 = 0;
|
v6 = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (option_is_set(opts, "v6only"))
|
if (option_is_set(opts, "v6only")) {
|
||||||
v4 = 0;
|
v4 = 0;
|
||||||
|
v6 = 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (!v4 && !v6) {
|
if (option_is_set(opts, "v4only") &&
|
||||||
|
option_is_set(opts, "v6only")) {
|
||||||
gt_log("v4only and v6only are both set\n");
|
gt_log("v4only and v6only are both set\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user