use fortifynet_proxy::{start_proxy_server, ProxyConfig};
use log::info;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let config = ProxyConfig {
ip_address: "127.0.0.1".to_string(),
port: 1234,
authentication: false,
username: "admin".to_string(),
password: "password".to_string(),
cache_enabled: false,
socks5_address: None,
https_enabled: false,
certificate_path: Some("cert.pem".to_string()),
private_key_path: Some("key.pem".to_string()),
target_address: Some("http://www.google.com".to_string()), };
info!("Starting Proxy server with configuration: {:?}", config);
start_proxy_server(config).await?;
Ok(())
}