Skip to content

Commit

Permalink
g3-dpi: add smpp to guess list
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-jq-b committed Jul 18, 2023
1 parent 189574a commit fdf5005
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/g3-dpi/src/protocol/inspect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const GUESS_PROTOCOL_FOR_CLIENT_INITIAL_DATA: &[MaybeProtocol] = &[
MaybeProtocol::Ssl,
MaybeProtocol::Http,
MaybeProtocol::Ssh,
MaybeProtocol::Smpp,
MaybeProtocol::BitTorrent,
];
const GUESS_PROTOCOL_FOR_SERVER_INITIAL_DATA: &[MaybeProtocol] = &[
Expand Down
2 changes: 1 addition & 1 deletion lib/g3-dpi/src/protocol/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl FromStr for MaybeProtocol {
"imaps" | "imap+tls" => Ok(MaybeProtocol::Imaps),
"rtsps" | "rtsp+tls" => Ok(MaybeProtocol::Rtsps),
"secure-mqtt" => Ok(MaybeProtocol::SecureMqtt),
"ssmpp" => Ok(MaybeProtocol::Ssmpp),
"ssmpp" | "smpps" | "secure smpp" => Ok(MaybeProtocol::Ssmpp),
"rtmps" | "rtmp+tls" => Ok(MaybeProtocol::Rtmps),
"ssl" | "tls" => Ok(MaybeProtocol::Ssl),
_ => Err(()),
Expand Down

0 comments on commit fdf5005

Please sign in to comment.