Pārlūkot izejas kodu

Spacing

tags/v0.2.0
Alexandre Anriot pirms 6 gadiem
vecāks
revīzija
455e28a128
1 mainītis faili ar 7 papildinājumiem un 7 dzēšanām
  1. +7
    -7
      _states/ufw.py

+ 7
- 7
_states/ufw.py Parādīt failu

@@ -32,22 +32,22 @@ def _as_rule(method, app, interface, protocol, from_addr, from_port, to_addr, to
if app is not None:
cmd.append("from")
if from_addr is not None:
cmd.append(from_addr)
cmd.append(from_addr)
else:
cmd.append("any")
cmd.append("any")

cmd.append("to")
if to_addr is not None:
cmd.append(to_addr)
cmd.append(to_addr)
else:
cmd.append("any")
cmd.append("any")

cmd.append("app")
cmd.append(app)
elif interface is not None:
cmd.append("in")
cmd.append("on")
cmd.append(interface)
cmd.append("in")
cmd.append("on")
cmd.append(interface)
else:
if protocol is not None:
cmd.append("proto")

Notiek ielāde…
Atcelt
Saglabāt