Skip to content

Commit

Permalink
dns_conf: Output log when option is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
pymumu committed Oct 23, 2023
1 parent 95c79ce commit f39bdb6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dns_conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,7 @@ static int _config_server(int argc, char *argv[], dns_server_type_t type, int de
break;
}
default:
tlog(TLOG_WARN, "invalid server option: %s", argv[optind - 1]);
break;
}
}
Expand Down Expand Up @@ -2193,6 +2194,7 @@ static int _config_bind_ip(int argc, char *argv[], DNS_BIND_TYPE type)
break;
}
default:
tlog(TLOG_WARN, "invalid bind option: %s", argv[optind - 1]);
break;
}
}
Expand Down Expand Up @@ -3199,6 +3201,7 @@ static int _conf_ip_rules(void *data, int argc, char *argv[])
break;
}
default:
tlog(TLOG_WARN, "invalid ip-rules option: %s", argv[optind - 1]);
break;
}
}
Expand Down Expand Up @@ -3594,6 +3597,7 @@ static int _conf_domain_rules(void *data, int argc, char *argv[])
break;
}
default:
tlog(TLOG_WARN, "invalid domain-rules option: %s", argv[optind - 1]);
break;
}
}
Expand Down

0 comments on commit f39bdb6

Please sign in to comment.