1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00

Merge pull request #223 from engineyard/security_group_port_range_bug

Security Group perms of FromPort 0 and ToPort -1
This commit is contained in:
Wesley Beary 2016-02-29 14:01:12 -06:00
commit c5b14f96d2

View file

@ -83,8 +83,8 @@ module Fog
requires_one :name, :group_id
ip_permission = {
'FromPort' => range.min,
'ToPort' => range.max,
'FromPort' => range.begin,
'ToPort' => range.end,
'IpProtocol' => options[:ip_protocol] || 'tcp'
}
@ -197,8 +197,8 @@ module Fog
requires_one :name, :group_id
ip_permission = {
'FromPort' => range.min,
'ToPort' => range.max,
'FromPort' => range.begin,
'ToPort' => range.end,
'IpProtocol' => options[:ip_protocol] || 'tcp'
}