Commit 918b6962 authored by JINMEI Tatuya's avatar JINMEI Tatuya

added -a to the usage.

commented about some weirdness with this option.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac221b@2472 e5f2f494-b856-4b98-b285-d166d9295462
parent 84bdd045
......@@ -89,7 +89,7 @@ my_command_handler(const string& command, const ElementPtr args) {
void
usage() {
cerr << "Usage: b10-auth [-p port] [-4|-6] [-nv]" << endl;
cerr << "Usage: b10-auth [-a address] [-p port] [-4|-6] [-nv]" << endl;
exit(1);
}
} // end of anonymous namespace
......@@ -168,6 +168,12 @@ main(int argc, char* argv[]) {
cout << "[b10-auth] Server created." << endl;
if (address != NULL) {
// XXX: we can only specify at most one explicit address.
// This also means the server cannot run in the dual address
// family mode if explicit addresses need to be specified.
// We don't bother to fix this problem, however. The -a option
// is a short term workaround until we support dynamic listening
// port allocation.
io_service = new asio_link::IOService(auth_server, *port,
*address);
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment