switch address range from fd00::/8 to the deprecated 0200::/7 range

This commit is contained in:
Arceliar 2018-06-14 07:08:48 -05:00
parent 8c29f4b6dc
commit 330175889e
2 changed files with 16 additions and 17 deletions

View file

@ -406,7 +406,7 @@ func (a *admin) startTunWithMTU(ifname string, iftapmode bool, ifmtu int) error
_ = a.core.tun.close()
// Then reconfigure and start it
addr := a.core.router.addr
straddr := fmt.Sprintf("%s/%v", net.IP(addr[:]).String(), 8*len(address_prefix))
straddr := fmt.Sprintf("%s/%v", net.IP(addr[:]).String(), 8*len(address_prefix)-1)
if ifname != "none" {
err := a.core.tun.setup(ifname, iftapmode, straddr, ifmtu)
if err != nil {