projects
/
lede-git
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
6rd: Select first IPv4 address from configured tunlink interface as local tunnel...
[lede-git/.git]
/
package
/
network
/
ipv6
/
6rd
/
files
/
6rd.sh
diff --git
a/package/network/ipv6/6rd/files/6rd.sh
b/package/network/ipv6/6rd/files/6rd.sh
index 58b16c8ff7ab380ea7d504576aac61f2fea2d0c4..db70b5a6c1a40ded1aa7f9bae9fe13f259b11c80 100644
(file)
--- a/
package/network/ipv6/6rd/files/6rd.sh
+++ b/
package/network/ipv6/6rd/files/6rd.sh
@@
-26,8
+26,13
@@
proto_6rd_setup() {
( proto_add_host_dependency "$cfg" 0.0.0.0 )
[ -z "$ipaddr" ] && {
( proto_add_host_dependency "$cfg" 0.0.0.0 )
[ -z "$ipaddr" ] && {
- local wanif
- if ! network_find_wan wanif || ! network_get_ipaddr ipaddr "$wanif"; then
+ local wanif="$tunlink"
+ if [ -z $wanif ] && ! network_find_wan wanif; then
+ proto_notify_error "$cfg" "NO_WAN_LINK"
+ return
+ fi
+
+ if ! network_get_ipaddr ipaddr "$wanif"; then
proto_notify_error "$cfg" "NO_WAN_LINK"
return
fi
proto_notify_error "$cfg" "NO_WAN_LINK"
return
fi