summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/main.c b/main.c
index fede07c..43ed992 100644
--- a/main.c
+++ b/main.c
@@ -134,7 +134,7 @@ static int usage(const char *name)
"Usage: %s -p [addr:]port -h docroot\n"
" -f Do not fork to background\n"
" -c file Configuration file, default is '/etc/httpd.conf'\n"
- " -b interface Bind subsequent ports (and addresses) to specified\n"
+ " -B interface Bind subsequent ports (and addresses) to specified\n"
" network interface with SO_BINDTODEVICE\n"
" -p [addr:]port Bind to specified address and port, multiple allowed\n"
#ifdef HAVE_TLS
@@ -264,7 +264,7 @@ int main(int argc, char **argv)
init_defaults_pre();
signal(SIGPIPE, SIG_IGN);
- while ((ch = getopt(argc, argv, "A:ab:C:c:Dd:E:fh:H:I:i:K:k:L:l:m:N:n:p:qRr:Ss:T:t:U:u:Xx:y:")) != -1) {
+ while ((ch = getopt(argc, argv, "A:aB:C:c:Dd:E:fh:H:I:i:K:k:L:l:m:N:n:p:qRr:Ss:T:t:U:u:Xx:y:")) != -1) {
switch(ch) {
#ifdef HAVE_TLS
case 'C':
@@ -279,14 +279,6 @@ int main(int argc, char **argv)
conf.tls_redirect = 1;
break;
- case 'b':
- free(device);
- if (optarg[0] == '\0')
- device = NULL;
- else
- device = strdup(optarg);
- break;
-
case 's':
n_tls++;
/* fall through */
@@ -299,6 +291,14 @@ int main(int argc, char **argv)
"ignoring -%c\n", ch);
break;
#endif
+ case 'B':
+ free(device);
+ if (optarg[0] == '\0')
+ device = NULL;
+ else
+ device = strdup(optarg);
+ break;
+
case 'p':
optarg = strdup(optarg);
bound += add_listener_arg(optarg, device, (ch == 's'));