Skip to content

Instantly share code, notes, and snippets.

View d3v3us's full-sized avatar
💻
Coding Alchemist: Turning Bugs into Gold!

Raf Barseghi d3v3us

💻
Coding Alchemist: Turning Bugs into Gold!
View GitHub Profile
use actix_web::{web, App, HttpResponse, Responder,HttpServer,middleware};
use serde::{ Serialize};
use std::cell::Cell;
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::{Arc, Mutex};
pub struct MessageApp {
host: String,
port: u16,
}
public class SocksWebProxy : IWebProxy, IDisposable
{
private static object locker = new object();
private static List<ProxyListener> listeners;
private static bool allowBypass;
private ProxyListener GetListener(ProxyConfig config, bool allowBypass = true)
{
lock (locker)