Skip to content

Commit

Permalink
Log local address with IA when registering to dispatcher (#3669)
Browse files Browse the repository at this point in the history
Include the local `IA` in the debug log after registering to the dispatcher. This allows to verify that the application is running in the correct networking context.
As a bonus, this allows to copy-paste the logged address from the debug log to connect to a server application.
  • Loading branch information
matzf authored Feb 19, 2020
1 parent bc4afda commit 7cc316c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/lib/snet/snet.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,6 @@ func (n *SCIONNetwork) Listen(ctx context.Context, network string, listen *net.U
// Update port
conn.listen.Port = int(port)
}
log.Debug("Registered with dispatcher", "addr", conn.listen)
log.Debug("Registered with dispatcher", "addr", &UDPAddr{IA: n.localIA, Host: conn.listen})
return newSCIONConn(conn, n.querier, packetConn), nil
}

0 comments on commit 7cc316c

Please sign in to comment.