
vpnc at unix-ag
Nov 28, 2007, 11:07 PM
Post #1 of 1
(676 views)
Permalink
|
|
svn commit: vpnc r271 - /trunk/vpnc-script.in
|
|
Author: Joerg Mayer Date: Thu Nov 29 08:07:29 2007 New Revision: 271 Log: - Set tun interface netmask only to /32 if no netmask was provided. - Fix bug that could cause the domain entry in resolv.conf to end up with more than one domain argument. Modified: trunk/vpnc-script.in Modified: trunk/vpnc-script.in ============================================================================== --- trunk/vpnc-script.in (original) +++ trunk/vpnc-script.in Thu Nov 29 08:07:29 2007 @@ -84,7 +84,7 @@ # =========== tunnel interface handling ==================================== do_ifconfig() { - ifconfig "$TUNDEV" inet "$INTERNAL_IP4_ADDRESS" $ifconfig_syntax_ptp "$INTERNAL_IP4_ADDRESS" netmask 255.255.255.255 mtu 1412 up + ifconfig "$TUNDEV" inet "$INTERNAL_IP4_ADDRESS" $ifconfig_syntax_ptp "$INTERNAL_IP4_ADDRESS" netmask ${INTERNAL_IP4_NETMASK:-255.255.255.255} mtu 1412 up } destroy_tun_device() { @@ -221,9 +221,15 @@ LINE="" fi ;; - domain*|search*) + search*) if [ -n "$CISCO_DEF_DOMAIN" ]; then LINE="$LINE $CISCO_DEF_DOMAIN" + CISCO_DEF_DOMAIN="" + fi + ;; + domain*) + if [ -n "$CISCO_DEF_DOMAIN" ]; then + LINE="domain $CISCO_DEF_DOMAIN" CISCO_DEF_DOMAIN="" fi ;; _______________________________________________ vpnc-devel mailing list vpnc-devel [at] unix-ag https://lists.unix-ag.uni-kl.de/mailman/listinfo/vpnc-devel http://www.unix-ag.uni-kl.de/~massar/vpnc/
|