diff options
Diffstat (limited to 'plugins/check_tcp.c')
| -rw-r--r-- | plugins/check_tcp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index b8af1a1d..ce4fd31f 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c | |||
| @@ -449,7 +449,11 @@ process_arguments (int argc, char **argv) | |||
| 449 | address_family = AF_INET; | 449 | address_family = AF_INET; |
| 450 | break; | 450 | break; |
| 451 | case '6': | 451 | case '6': |
| 452 | #ifdef USE_IPV6 | ||
| 452 | address_family = AF_INET6; | 453 | address_family = AF_INET6; |
| 454 | #else | ||
| 455 | usage ("IPv6 support not available\n"); | ||
| 456 | #endif | ||
| 453 | break; | 457 | break; |
| 454 | case 'H': /* hostname */ | 458 | case 'H': /* hostname */ |
| 455 | if (is_host (optarg) == FALSE) | 459 | if (is_host (optarg) == FALSE) |
