]> sjero.net Git - wget/commitdiff
[svn] More specific error message in resolve_bind_address.
authorhniksic <devnull@localhost>
Wed, 5 Nov 2003 14:42:42 +0000 (06:42 -0800)
committerhniksic <devnull@localhost>
Wed, 5 Nov 2003 14:42:42 +0000 (06:42 -0800)
src/ChangeLog
src/connect.c

index f83a97bff46df7cf36ae03d484af3985463e354f..dd99fd914c71b6ae6b62216499c35a689fc8d9b4 100644 (file)
@@ -1,3 +1,9 @@
+2003-11-05  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * connect.c (resolve_bind_address): Use a more accurate error
+       message -- we're not binding to ANY, we're disabling bind
+       altogether.
+
 2003-11-05  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * cookies.c (save_cookies_mapper): Respect the setting of
index 52dc0b01f2e0f27301da5678d5dacb57b7d63e5c..80df36190aec541e9df123129e6124e06e62153e 100644 (file)
@@ -175,9 +175,10 @@ resolve_bind_address (const char *host, struct sockaddr *sa, int flags)
   al = lookup_host (host, flags | LH_SILENT | LH_PASSIVE);
   if (al == NULL)
     {
+      /* #### We should print the error message here. */
       logprintf (LOG_NOTQUIET,
-                _("Unable to convert `%s' to a bind address.  Reverting to ANY.\n"),
-                opt.bind_address);
+                _("%s: unable to resolve bind address `%s'; disabling bind.\n"),
+                exec_name, opt.bind_address);
       return 0;
     }