mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-19 08:39:43 +02:00
6to4: fix interface error handling
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31034 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
768650413e
commit
369bc0e57d
@ -126,14 +126,14 @@ proto_6to4_setup() {
|
|||||||
|
|
||||||
local wanif=$(find_6to4_wanif)
|
local wanif=$(find_6to4_wanif)
|
||||||
[ -z "$wanif" ] && {
|
[ -z "$wanif" ] && {
|
||||||
tun_error "NO_WAN_LINK"
|
tun_error "$cfg" "NO_WAN_LINK"
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
. /lib/network/config.sh
|
. /lib/network/config.sh
|
||||||
local wancfg="$(find_config "$wanif")"
|
local wancfg="$(find_config "$wanif")"
|
||||||
[ -z "$wancfg" ] && {
|
[ -z "$wancfg" ] && {
|
||||||
tun_error "NO_WAN_LINK"
|
tun_error "$cfg" "NO_WAN_LINK"
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -144,12 +144,12 @@ proto_6to4_setup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[ -z "$local4" ] && {
|
[ -z "$local4" ] && {
|
||||||
tun_error "NO_WAN_LINK"
|
tun_error "$cfg" "NO_WAN_LINK"
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
test_6to4_rfc1918 "$local4" && {
|
test_6to4_rfc1918 "$local4" && {
|
||||||
tun_error "INVALID_LOCAL_ADDRESS"
|
tun_error "$cfg" "INVALID_LOCAL_ADDRESS"
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user