Skip to content

Commit c14cae1

Browse files
committed
Make INTERNAL_PORT optional, allowing DELETE to work
1 parent 4481337 commit c14cae1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/admin/upnp/soap_portmapping.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def initialize
4343
OptAddress.new('INTERNAL_CLIENT', [false, 'Internal client hostname/IP']),
4444
OptAddress.new('EXTERNAL_CLIENT', [false, 'External client hostname/IP']),
4545
OptEnum.new('PROTOCOL', [true, 'Transport level protocol to map', 'TCP', %w(TCP UDP)]),
46-
OptInt.new('INTERNAL_PORT', [true, 'Internal port']),
46+
OptInt.new('INTERNAL_PORT', [false, 'Internal port']),
4747
OptInt.new('EXTERNAL_PORT', [true, 'External port']),
4848
OptInt.new('LEASE_DURATION', [true, 'Lease time for mapping, in seconds', 3600])
4949
],

0 commit comments

Comments
 (0)