use $nat.protocol instead of hardcoded tcp

master
lub 5 years ago
parent 26eb77afd4
commit c0e8c99380

@ -58,7 +58,7 @@ services:
- "/gluster/docker/imninja_synapse/data/:/data/" - "/gluster/docker/imninja_synapse/data/:/data/"
ports: ports:
- "145.239.119.128:8448:8448" - "145.239.119.128:8448:8448"
- "145.239.119.128:42933:443" - "145.239.119.128:42933:443/udp"
networks: networks:
- homeserver - homeserver
- database - database

@ -160,8 +160,8 @@ foreach($yaml in (Get-ChildItem -Path $Stacks -Include '*.yml','*.yaml' -Recurse
Write-Output ('Add rule for {0}:{1}' -f $nat.ip,$nat.port) Write-Output ('Add rule for {0}:{1}' -f $nat.ip,$nat.port)
$rule = @( $rule = @(
'-p','tcp' '-p',$nat.protocol
'-m','tcp' '-m',$nat.protocol
'--destination',$nat.ip '--destination',$nat.ip
'--dport',$nat.port '--dport',$nat.port
'-j','DNAT' '-j','DNAT'

Loading…
Cancel
Save