pub fn is_server(self) -> bool {
        match self {
            ConfigType::Socks5Local => false,
            #[cfg(feature = "local-socks4")]
            ConfigType::Socks4Local => false,
            #[cfg(feature = "local-dns")]
            ConfigType::DnsLocal => false,
            #[cfg(feature = "local-tunnel")]
            ConfigType::TunnelLocal => false,
            #[cfg(feature = "local-http")]
            ConfigType::HttpLocal => false,
            #[cfg(all(
                feature = "local-http",
                any(feature = "local-http-native-tls", feature = "local-http-rustls")
            ))]
            ConfigType::HttpsLocal => false,
            #[cfg(feature = "local-redir")]
            ConfigType::RedirLocal => false,
            ConfigType::Manager => false,
            ConfigType::Server => true,
        }
    }
/// Check if it is remote server type
Check if it is remote server type
Check if it is remote server type
pub fn is_server(self) -> bool {
        match self {
            ConfigType::Socks5Local => false,
            #[cfg(feature = "local-socks4")]
            ConfigType::Socks4Local => false,
            #[cfg(feature = "local-dns")]
            ConfigType::DnsLocal => false,
            #[cfg(feature = "local-tunnel")]
            ConfigType::TunnelLocal => false,
            #[cfg(feature = "local-http")]
            ConfigType::HttpLocal => false,
            #[cfg(all(
                feature = "local-http",
                any(feature = "local-http-native-tls", feature = "local-http-rustls")
            ))]
            ConfigType::HttpsLocal => false,
            #[cfg(feature = "local-redir")]
            ConfigType::RedirLocal => false,
            ConfigType::Manager => false,
            ConfigType::Server => true,
        }
    }
pub fn is_server ( self ) -> bool { match self { ConfigType :: Socks5Local => false , # [ cfg ( feature " " ) ] ConfigType :: Socks4Local => false , # [ cfg ( feature " " ) ] ConfigType :: DnsLocal => false , # [ cfg ( feature " " ) ] ConfigType :: TunnelLocal => false , # [ cfg ( feature " " ) ] ConfigType :: HttpLocal => false , # [ cfg ( all ( feature " " any ( feature " " feature " " ) ) ) ] ConfigType :: HttpsLocal => false , # [ cfg ( feature " " ) ] ConfigType :: RedirLocal => false , ConfigType :: Manager => false , ConfigType :: Server => true , } }
Check if it is remote server type
Check if it is remote server type
self