This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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, | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |