Fix http port set sahipro

This commit is contained in:
garnier-quentin 2019-03-19 10:31:11 +01:00
parent 64fed72240
commit 4dcf43fe63
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->{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 {

View File

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