1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-06-24 01:49:36 +02:00

Bugfix: Junos: IPv6 force /128 on hosts

This commit is contained in:
Sirius Bakke
2015-02-27 11:07:12 +01:00
parent 12070b760c
commit e9f015dfc5

View File

@@ -719,8 +719,11 @@ string PolicyCompiler_junosacl::PrintRule::_printAddr(Address *o)
}
} else
{
// str << srcaddr->toString() << "/" << srcmask.getLength();
str << srcaddr->toString() << "/" << 32;
if (srcaddr->isV4())
str << srcaddr->toString() << "/" << 32;
else
str << srcaddr->toString() << "/" << 128;
// str << srcaddr->toString() << "/" << srcmask.getLength();
}
}
return str.str();