mirror of
https://github.com/cubixle/iabtcfv2.git
synced 2026-04-24 22:54:44 +01:00
Fix Encode() for publisher restrictions
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user