Browse Source

6rd: increase metric of default route

This will prefer native IPv6 over 6rd if both are present.

SVN-Revision: 36605
Steven Barth 12 năm trước cách đây
mục cha
commit
8560648082

+ 1 - 1
package/network/ipv6/6rd/Makefile

@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=6rd
-PKG_VERSION:=3
+PKG_VERSION:=4
 PKG_RELEASE:=1
 
 include $(INCLUDE_DIR)/package.mk

+ 1 - 1
package/network/ipv6/6rd/files/6rd.sh

@@ -48,7 +48,7 @@ proto_6rd_setup() {
 	proto_init_update "$link" 1
 	proto_add_ipv6_address "$ip6addr" "$ip6prefixlen"
 	proto_add_ipv6_prefix "$ip6lanprefix"
-	proto_add_ipv6_route "::" 0 "::$peeraddr"
+	proto_add_ipv6_route "::" 0 "::$peeraddr" 4096
 
 	proto_add_tunnel
 	json_add_string mode sit