[svn] commit: r2472 - /branches/trac221b/src/bin/auth/main.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Sat Jul 10 01:47:15 UTC 2010


Author: jinmei
Date: Sat Jul 10 01:47:14 2010
New Revision: 2472

Log:
added -a to the usage.
commented about some weirdness with this option.

Modified:
    branches/trac221b/src/bin/auth/main.cc

Modified: branches/trac221b/src/bin/auth/main.cc
==============================================================================
--- branches/trac221b/src/bin/auth/main.cc (original)
+++ branches/trac221b/src/bin/auth/main.cc Sat Jul 10 01:47:14 2010
@@ -89,7 +89,7 @@
 
 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 @@
         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 {




More information about the bind10-changes mailing list