better tunnel names

This commit is contained in:
idk 2018-12-26 13:08:46 -05:00
parent b7d72fec44
commit 064f09c624
No known key found for this signature in database
GPG key ID: D75C03B39B5E14E1
2 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@ type Manager struct {
resolver.Resolver
socks5.Config
*sam3.SAM
conns []*conn.Conn
conns []conn.Conn
datadir string
host string
port string
@ -57,7 +57,7 @@ func (m Manager) DialI2P(ctx context.Context, addr string) (*sam3.SAMConn, error
}
m.conns = append(m.conns, newconn)
log.Println("Generated destination for address:", i2paddr.Base32(), "at position", len(m.conns)-1)
return m.conns[len(m.conns)-1].SAMConn, nil
return &m.conns[len(m.conns)-1].SAMConn, nil
}
func (m Manager) Dial(ctx context.Context, network, addr string) (net.Conn, error) {