INNER CODE UNIT · Rust

socket_path

upvpn/upvpn-app · upvpn-config/src/lib.rs:139

    pub fn socket_path(&self) -> &Path {
        return &self.socket_path;
    }

    pub fn version(&self) -> &'static str {
        env!("UPVPN_VERSION")
    }

    pub fn license_file_path(&self) -> PathBuf {
        if self.license_file_path.is_some() {
            return self.license_file_path.clone().unwrap();
        }
        #[cfg(target_os = "linux")]
        return PathBuf::from_str("/opt/upvpn/upvpn-oss-licenses.html").unwrap();
        #[cfg(target_os = "macos")]
        return PathBuf::from_str(
            "/Applications/upvpn.app/Contents/Resources/upvpn-oss-licenses.html",
        )

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…