bundles/kodi: add iptables rules
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
75f5c58764
commit
b99176be49
1 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
from bundlewrap.metadata import atomic
|
||||||
|
|
||||||
defaults = {
|
defaults = {
|
||||||
'apt': {
|
'apt': {
|
||||||
'repos': {
|
'repos': {
|
||||||
|
@ -39,3 +41,16 @@ defaults = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@metadata_reactor.provides(
|
||||||
|
'iptables/port_rules/8080',
|
||||||
|
)
|
||||||
|
def iptables(metadata):
|
||||||
|
return {
|
||||||
|
'iptables': {
|
||||||
|
'port_rules': {
|
||||||
|
'8080': atomic(metadata.get('kodi/restrict-to', set('*'))),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue