more tunnel logging
This commit is contained in:
parent
fbc1d523d7
commit
1e496938b7
@ -250,6 +250,7 @@ func (t *tun) connect() error {
|
|||||||
go func() {
|
go func() {
|
||||||
// accept inbound connections
|
// accept inbound connections
|
||||||
err := l.Accept(func(sock transport.Socket) {
|
err := l.Accept(func(sock transport.Socket) {
|
||||||
|
log.Debugf("Accepted connection from %s", sock.Remote())
|
||||||
// save the link
|
// save the link
|
||||||
id := uuid.New().String()
|
id := uuid.New().String()
|
||||||
t.Lock()
|
t.Lock()
|
||||||
@ -280,11 +281,13 @@ func (t *tun) connect() error {
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
for _, node := range t.options.Nodes {
|
for _, node := range t.options.Nodes {
|
||||||
|
log.Debugf("Dialing %s", node)
|
||||||
c, err := t.options.Transport.Dial(node)
|
c, err := t.options.Transport.Dial(node)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Debugf("Tunnel failed to connect to %s: %v", node, err)
|
log.Debugf("Tunnel failed to connect to %s: %v", node, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
log.Debugf("Connected to %s", node)
|
||||||
|
|
||||||
if err := c.Send(&transport.Message{
|
if err := c.Send(&transport.Message{
|
||||||
Header: map[string]string{
|
Header: map[string]string{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user