Skip to content

Commit

Permalink
Add Addr func to dmsg server
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkren committed Jun 3, 2019
1 parent 551afdd commit 53578a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/dmsg/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@ func (s *Server) SetLogger(log *logging.Logger) {
s.log = log
}

// Addr returns the server's listening address.
func (s *Server) Addr() string {
return s.lis.Addr().String()
}

func (s *Server) setConn(l *ServerConn) {
s.mx.Lock()
s.conns[l.remoteClient] = l
Expand Down

0 comments on commit 53578a9

Please sign in to comment.