From 28e89eb149248b7cd57eaa9b9e4df8a0647ac722 Mon Sep 17 00:00:00 2001 From: David Stainton Date: Thu, 26 May 2016 10:42:42 +0000 Subject: [PATCH] Start socks server right before running the blocking runFilter() --- main.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.go b/main.go index 257decb..3caf134 100644 --- a/main.go +++ b/main.go @@ -168,5 +168,14 @@ func main() { }() */ + socksConfig := SocksChainConfig{ + TargetSocksNet: "tcp", + TargetSocksAddr: "127.0.0.1:9050", + ListenSocksNet: "tcp", + ListenSocksAddr: "127.0.0.1:8850", + } + wg := sync.WaitGroup{} + InitSocksListener(&socksConfig, &wg) + fw.runFilter() }