Fix Encode() for publisher restrictions

This commit is contained in:
Thomas LAY
2020-05-05 17:33:15 +02:00
parent 3ac524b657
commit d6069d62fa

View File

@@ -203,6 +203,7 @@ func (c *CoreString) Encode() string {
for _, res := range c.PubRestrictions {
entriesSize := 20
for _, entry := range res.RangeEntries {
entriesSize += 1
if entry.EndVendorID > entry.StartVendorID {
entriesSize += 16 * 2
} else {