refractium 3.0.4

Extensible low-level reverse proxy for port multiplexing and protocol-based routing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! FTP protocol identification logic.

use crate::core::types::Transport;
use crate::define_protocol;

define_protocol!(
    /// FTP protocol identification implementation.
    name: Ftp,
    transport: Transport::Tcp,
    identify: |data| {
        data.starts_with(b"USER ") || data.starts_with(b"AUTH TLS") || data.starts_with(b"220 ")
    }
);