require and generate source address tokens in crypto setup

fixes #121
This commit is contained in:
Lucas Clemente
2016-05-24 11:20:06 +02:00
parent e2254f1bbd
commit fa2e34d360
8 changed files with 172 additions and 40 deletions

View File

@@ -4,6 +4,7 @@ import (
"bytes"
"errors"
"io"
"net"
"runtime"
"sync/atomic"
"time"
@@ -31,6 +32,7 @@ func (m *mockConnection) write(p []byte) error {
}
func (*mockConnection) setCurrentRemoteAddr(addr interface{}) {}
func (*mockConnection) IP() net.IP { return nil }
var _ = Describe("Session", func() {
var (