bundles/kodi: add iptables rules
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-03-21 19:10:49 +01:00
parent 75f5c58764
commit b99176be49
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -1,3 +1,5 @@
from bundlewrap.metadata import atomic
defaults = {
'apt': {
'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('*'))),
},
},
}