diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-06-05 22:54:43 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-06-05 22:54:43 +0000 |
commit | b127cd08d994179a578d06fe122bc77e09eea30c (patch) | |
tree | 04ec31fe047be6c612b75845d870c707252a0281 /sbin/isakmpd | |
parent | bf95f4749485653fcbff0be73db299a9d226d4e0 (diff) |
Use the Listen-on address as local address if Local-address
not given, but Listen-on is.
Diffstat (limited to 'sbin/isakmpd')
-rw-r--r-- | sbin/isakmpd/udp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/isakmpd/udp.c b/sbin/isakmpd/udp.c index 69f61dcb666..7a581cf08cd 100644 --- a/sbin/isakmpd/udp.c +++ b/sbin/isakmpd/udp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp.c,v 1.13 1999/04/30 11:46:59 niklas Exp $ */ +/* $OpenBSD: udp.c,v 1.14 1999/06/05 22:54:42 niklas Exp $ */ /* $EOM: udp.c,v 1.40 1999/04/29 18:46:54 niklas Exp $ */ /* @@ -349,6 +349,8 @@ udp_create (char *name) addr_str = conf_get_str (name, "Local-address"); if (!addr_str) + addr_str = conf_get_str ("General", "Listen-on"); + if (!addr_str) return udp_clone ((struct udp_transport *)default_transport, &dst); addr = inet_addr (addr_str); |