Fix http port set sahipro

This commit is contained in:
garnier-quentin 2019-03-19 10:31:11 +01:00
parent 4738f53b8b
commit b116fde99a
2 changed files with 1 additions and 2 deletions

View File

@ -211,7 +211,7 @@ sub check_options {
} }
$self->change_macros(macros => ['warning_status', 'critical_status']); $self->change_macros(macros => ['warning_status', 'critical_status']);
$self->{http}->set_options(%{$self->{option_results}}); $self->{http}->set_options(port => $self->{option_results}->{sahi_port}, proto => $self->{option_results}->{sahi_proto});
} }
sub decode_xml_response { sub decode_xml_response {

View File

@ -104,7 +104,6 @@ sub check_options {
$self->{output}->option_exit(); $self->{output}->option_exit();
} }
$options{request}->{port} = $self->get_port_request();
$options{request}->{port_force} = $self->get_port(); $options{request}->{port_force} = $self->get_port();
$options{request}->{headers} = {}; $options{request}->{headers} = {};