mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-15 11:36:54 +02:00
.
This commit is contained in:
parent
54fa73844c
commit
b475bf4a21
1 changed files with 2 additions and 2 deletions
|
@ -747,8 +747,8 @@ function compile(src,rules,caps,tags)
|
|||
if ((id < 0)||(id > 0xffffffff))
|
||||
return [ tag[k][1],tag[k][2],'Invalid or out of range tag ID.' ];
|
||||
} else if (tkeyword === 'default') {
|
||||
if (id >= 0)
|
||||
return [ tag[k][1],tag[k][2],'Duplicate tag id definition.' ];
|
||||
if (dfl !== null)
|
||||
return [ tag[k][1],tag[k][2],'Duplicate tag default directive.' ];
|
||||
if ((k + 1) >= tag.length)
|
||||
return [ tag[k][1],tag[k][2],'Missing value for default.' ];
|
||||
dfl = tag[++k][0]||null;
|
||||
|
|
Loading…
Add table
Reference in a new issue