lib/iptablez/commands/helpers/argument_helpers.rb in iptablez-1.0.2.pre vs lib/iptablez/commands/helpers/argument_helpers.rb in iptablez-1.0.3.pre
- old
+ new
@@ -86,12 +86,16 @@
results[:jump] = normalize_jump(args[:jump])[:jump] if args[:jump]
results[:goto] = normalize_goto(args[:goto])[:goto] if args[:goto]
results[:protocol] = normalize_protocol(args[:protocol])[:protocol] if args[:protocol]
results[:interface]= normalize_interface(args[:interface])[:interface] if args[:interface]
results[:src] = normalize_source(args[:src])[:source] if args[:src]
+ results[:src] = normalize_source(args[:source])[:source] if args[:source]
results[:sport] = normalize_source(args[:sport], port: true)[:source_port] if args[:sport]
+ results[:sport] = normalize_source(args[:source_port], port: true)[:source_port] if args[:source_port]
results[:dst] = normalize_destination(args[:dst])[:destination] if args[:dst]
+ results[:dst] = normalize_destination(args[:destination])[:destination] if args[:destination]
results[:dport] = normalize_destination(args[:dport], port: true)[:destination_port] if args[:dport]
+ results[:dport] = normalize_destination(args[:destination_port], port: true)[:destination_port] if args[:destination_port] # lol
results
end
def self.normalize_jump(arg)
if arg["-j"] || arg["--jump"]