From 18ce1bbade833f2c88688b2fe0b15f4ae01a6160 Mon Sep 17 00:00:00 2001 From: idk Date: Wed, 26 Dec 2018 12:43:24 -0500 Subject: [PATCH] bugfixes --- Makefile | 3 ++- conn/conn.go | 3 +++ socks/manager.go | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7358503..7aaae18 100644 --- a/Makefile +++ b/Makefile @@ -33,4 +33,5 @@ kill: killall -9 eeProxy fire: - curl --socks5 127.0.0.1:7950 http://i2p-projekt.i2p + \/usr/bin/curl --socks5-hostname 127.0.0.1:7950 http://i2p-projekt.i2p --output - + \/usr/bin/curl --socks5-hostname 127.0.0.1:7950 http://inr.i2p --output - diff --git a/conn/conn.go b/conn/conn.go index 8bb3526..f98204c 100644 --- a/conn/conn.go +++ b/conn/conn.go @@ -2,6 +2,7 @@ package conn import ( "bufio" + "log" "math/rand" "os" "path/filepath" @@ -78,9 +79,11 @@ func (c Conn) Keys() (sam3.I2PKeys, error) { } func (m Conn) Cleanup() error { + log.Println("Cleaning up client connection.", m.name) if err := m.SAMConn.Close(); err != nil { return err } + log.Println("Cleaning up client session.", m.name) if err := m.StreamSession.Close(); err != nil { return err } diff --git a/socks/manager.go b/socks/manager.go index fd2890e..54c97bf 100644 --- a/socks/manager.go +++ b/socks/manager.go @@ -66,11 +66,13 @@ func (m Manager) Dial(ctx context.Context, network, addr string) (net.Conn, erro } func (m Manager) Cleanup() error { + log.Println("Initiating cleanup.") for _, c := range m.conns { if err := c.Cleanup(); err != nil { return err } } + log.Println("Finished cleanup.") return nil }