diff options
author | Steven Barth <cyrus@openwrt.org> | 2015-04-09 08:17:23 +0000 |
---|---|---|
committer | Steven Barth <cyrus@openwrt.org> | 2015-04-09 08:17:23 +0000 |
commit | d5a477cc38c319ddc89428594c7db98d27f590bb (patch) | |
tree | a4cb67bfe2250572d861291a36de5eb0020e8f97 /package/network/ipv6/ds-lite/files | |
parent | c99d9afff3b0863b0425fc65bb2b254bc6863556 (diff) | |
download | upstream-d5a477cc38c319ddc89428594c7db98d27f590bb.tar.gz upstream-d5a477cc38c319ddc89428594c7db98d27f590bb.tar.bz2 upstream-d5a477cc38c319ddc89428594c7db98d27f590bb.zip |
ds-lite: add support for fqdn peeraddrs
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 45322
Diffstat (limited to 'package/network/ipv6/ds-lite/files')
-rwxr-xr-x | package/network/ipv6/ds-lite/files/dslite.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/package/network/ipv6/ds-lite/files/dslite.sh b/package/network/ipv6/ds-lite/files/dslite.sh index a526c91d31..7b686390b3 100755 --- a/package/network/ipv6/ds-lite/files/dslite.sh +++ b/package/network/ipv6/ds-lite/files/dslite.sh @@ -25,6 +25,17 @@ proto_dslite_setup() { ( proto_add_host_dependency "$cfg" "::" "$tunlink" ) + peeraddr=$(resolveip -6 $peeraddr) + if [ -z "$peeraddr" ]; then + sleep 3 + peeraddr=$(resolveip -6 $peeraddr) + if [ -z "$peeraddr" ]; then + proto_notify_error "$cfg" "AFTR_DNS_FAIL" + return + fi + fi + peeraddr="${peeraddr%% *}" + [ -z "$ip6addr" ] && { local wanif="$tunlink" if [ -z "$wanif" ] && ! network_find_wan6 wanif; then |