explode_conf_content

Function explode_conf_content 

Source
pub fn explode_conf_content(content: &str, nodes: &mut Vec<Proxy>) -> i32
Expand description

Explodes a configuration file content into a vector of Proxy objects

Attempts to detect and parse various configuration formats like Clash, SSD, Surge, Quantumult, etc., and converts them to Proxy objects.

§Arguments

  • content - The configuration content as a string
  • nodes - Vector to store the parsed Proxy objects

§Returns

Number of nodes successfully parsed, or 0 if parsing failed