From 30678daadcfa128ceb5b9ba29f2b90041a2482e0 Mon Sep 17 00:00:00 2001 Message-Id: <30678daadcfa128ceb5b9ba29f2b90041a2482e0.1714795373.git.mdw@distorted.org.uk> From: Mark Wooding Date: Mon, 7 May 2012 13:31:44 +0100 Subject: [PATCH] pkstream/pkstream.c: Have `-b' affect the listening mode too. Organization: Straylight/Edgeware From: Mark Wooding --- pkstream/pkstream.1.in | 4 ++++ pkstream/pkstream.c | 1 + 2 files changed, 5 insertions(+) diff --git a/pkstream/pkstream.1.in b/pkstream/pkstream.1.in index 2af127be..6bbe46bc 100644 --- a/pkstream/pkstream.1.in +++ b/pkstream/pkstream.1.in @@ -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 diff --git a/pkstream/pkstream.c b/pkstream/pkstream.c index d431b820..2c4ca3ba 100644 --- a/pkstream/pkstream.c +++ b/pkstream/pkstream.c @@ -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); -- [mdw]