From 1ab553d24519e0dfba8905c63f981e6757231552 Mon Sep 17 00:00:00 2001 From: Ryan Thomas McBride Date: Tue, 14 Dec 2004 10:17:29 +0000 Subject: Allow the Address, Network, or Netmask values of the to be specified with an interface name (in which case the first address is used) or the keyword 'default' (in which case the address is selected based on the default route). eg: [roadwarrior-ip] ID-type= IPV4_ADDR Address= default ok ho@ hshoexer@ --- sbin/isakmpd/conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/isakmpd/conf.c') diff --git a/sbin/isakmpd/conf.c b/sbin/isakmpd/conf.c index 0eaa1e9ed01..eb3f504837d 100644 --- a/sbin/isakmpd/conf.c +++ b/sbin/isakmpd/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.73 2004/08/08 19:11:06 deraadt Exp $ */ +/* $OpenBSD: conf.c,v 1.74 2004/12/14 10:17:28 mcbride Exp $ */ /* $EOM: conf.c,v 1.48 2000/12/04 02:04:29 angelos Exp $ */ /* @@ -648,7 +648,7 @@ conf_get_address(char *section, char *tag) if (!value) return 0; - if (text2sockaddr(value, 0, &sa) == -1) + if (text2sockaddr(value, 0, &sa, 0, 0) == -1) return 0; return sa; } -- cgit v1.2.3