mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-13 18:50:01 -04:00
Merge pull request #1587 from jacobbaungard/check_mysql_allow_socket-H
check_mysql: Allow sockets to be specified to -H
This commit is contained in:
commit
41d98f708a
1 changed files with 3 additions and 0 deletions
|
|
@ -379,6 +379,9 @@ process_arguments (int argc, char **argv)
|
|||
if (is_host (optarg)) {
|
||||
db_host = optarg;
|
||||
}
|
||||
else if (*optarg == '/') {
|
||||
db_socket = optarg;
|
||||
}
|
||||
else {
|
||||
usage2 (_("Invalid hostname/address"), optarg);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue