Browse Source

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

JINMEI Tatuya 15 years ago
parent
commit
918b6962cd
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/bin/auth/main.cc

+ 7 - 1
src/bin/auth/main.cc

@@ -89,7 +89,7 @@ my_command_handler(const string& command, const ElementPtr args) {
 
 
 void
 void
 usage() {
 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);
     exit(1);
 }
 }
 } // end of anonymous namespace
 } // end of anonymous namespace
@@ -168,6 +168,12 @@ main(int argc, char* argv[]) {
         cout << "[b10-auth] Server created." << endl;
         cout << "[b10-auth] Server created." << endl;
 
 
         if (address != NULL) {
         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,
             io_service = new asio_link::IOService(auth_server, *port,
                                                   *address);
                                                   *address);
         } else {
         } else {