Skip inet6 addresses that begin with fe80: (not just exact match).

This commit is contained in:
kim 2020-01-27 08:28:33 +00:00
parent ab92444102
commit b5a7b1ab14
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: ipsec,v 1.15 2018/08/13 09:16:06 christos Exp $
# $NetBSD: ipsec,v 1.16 2020/01/27 08:28:33 kim Exp $
#
# PROVIDE: ipsec
@ -34,7 +34,7 @@ ipsec_getip() {
case "$what" in
inet) echo "local v4_addr=$address;";;
inet6) case "$address" in
fe80:) ;;
fe80:*) ;;
*) echo "local v6_addr=$address;";;
esac;;
esac