sip: enable by default

Redmine issue:
https://redmine.openinfosecfoundation.org/issues/3256
pull/5012/head
Jason Ish 5 years ago committed by Victor Julien
parent 3ccd44b144
commit 5a7ba62493

@ -20,7 +20,6 @@
extern crate nom;
use crate::applayer::{self, *};
use crate::conf;
use crate::core;
use crate::core::{sc_detect_engine_state_free, AppProto, Flow, ALPROTO_UNKNOWN};
use crate::log::*;
@ -417,12 +416,6 @@ pub unsafe extern "C" fn rs_sip_register_parser() {
set_tx_detect_flags: None,
};
/* For 5.0 we want this disabled by default, so check that it
* has been explicitly enabled. */
if !conf::conf_get_bool("app-layer.protocols.sip.enabled") {
return;
}
let ip_proto_str = CString::new("udp").unwrap();
if AppLayerProtoDetectConfProtoDetectionEnabled(ip_proto_str.as_ptr(), parser.name) != 0 {
let alproto = AppLayerRegisterProtocolDetection(&parser, 1);

@ -265,7 +265,7 @@ outputs:
- krb5
- snmp
- rfb
#- sip
- sip
- dhcp:
enabled: yes
# When extended mode is on, all DHCP messages are logged
@ -949,7 +949,6 @@ app-layer:
dhcp:
enabled: yes
# SIP, disabled by default.
sip:
#enabled: no

Loading…
Cancel
Save