From b127cd08d994179a578d06fe122bc77e09eea30c Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Sat, 5 Jun 1999 22:54:43 +0000 Subject: Use the Listen-on address as local address if Local-address not given, but Listen-on is. --- sbin/isakmpd/udp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 $ */ /* @@ -348,6 +348,8 @@ udp_create (char *name) dst.sin_port = port; 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); -- cgit v1.2.3