diff --git a/tunnel/session.go b/tunnel/session.go index a4c7a2fe..e0eb8829 100644 --- a/tunnel/session.go +++ b/tunnel/session.go @@ -83,6 +83,10 @@ func (s *session) Local() string { return s.local } +func (s *session) Link() string { + return s.link +} + func (s *session) Id() string { return s.session } diff --git a/tunnel/tunnel.go b/tunnel/tunnel.go index 29a479e6..17e4bd7e 100644 --- a/tunnel/tunnel.go +++ b/tunnel/tunnel.go @@ -62,6 +62,8 @@ type Session interface { Id() string // The channel name Channel() string + // The link the session is on + Link() string // a transport socket transport.Socket }