File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -165,8 +165,8 @@ def save_settings_to_config
165
165
ini [ name ] [ 'smtp_from' ] = self . smtp_from
166
166
ini [ name ] [ 'sms_number' ] = self . sms_number
167
167
ini [ name ] [ 'sms_carrier' ] = self . sms_carrier
168
- ini [ name ] [ 'minimum_ip' ] = self . minimum_ip . to_s
169
- ini [ name ] [ 'maximum_ip' ] = self . maximum_ip . to_s
168
+ ini [ name ] [ 'minimum_ip' ] = self . minimum_ip . to_s unless self . minimum_ip . blank?
169
+ ini [ name ] [ 'maximum_ip' ] = self . maximum_ip . to_s unless self . maximum_ip . blank?
170
170
ini . to_file ( config_file )
171
171
end
172
172
@@ -175,7 +175,7 @@ def load_settings_from_config
175
175
ini = Rex ::Parser ::Ini . new ( config_file )
176
176
group = ini [ name ]
177
177
if group
178
- @sms_carrier = group [ 'sms_carrier' ] if group [ 'sms_carrier' ]
178
+ @sms_carrier = group [ 'sms_carrier' ] . to_sym if group [ 'sms_carrier' ]
179
179
@sms_number = group [ 'sms_number' ] if group [ 'sms_number' ]
180
180
@smtp_address = group [ 'smtp_address' ] if group [ 'smtp_address' ]
181
181
@smtp_port = group [ 'smtp_port' ] if group [ 'smtp_port' ]
You can’t perform that action at this time.
0 commit comments