chiark / gitweb /
pkstream/pkstream.c: Have `-b' affect the listening mode too.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 7 May 2012 12:31:44 +0000 (13:31 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 7 May 2012 14:32:06 +0000 (15:32 +0100)
pkstream/pkstream.1.in
pkstream/pkstream.c

index 2af127b..6bbe46b 100644 (file)
@@ -112,6 +112,10 @@ This option only makes sense in conjunction with
 .BR \-l .
 .TP
 .BI "\-b, \-\-bind=" addr
+When listening (see
+.B \-l
+above), only listen on the local address
+.IR addr .
 When making a connection (see
 .B \-c
 below), use
index d431b82..2c4ca3b 100644 (file)
@@ -394,6 +394,7 @@ int main(int argc, char *argv[])
        break;
       case 'b':
        parseaddr(optarg, &bindaddr.sin_addr, 0);
+       cw.me.sin_addr = bindaddr.sin_addr;
        break;
       case 'c':
        parseaddr(optarg, &connaddr.sin_addr, &pt);