Skip to content

Commit 918e655

Browse files
committed
Add GetRouterId to edge connection
1 parent 409839e commit 918e655

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ziti/edge/conn.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ type ServiceConn interface {
102102
type Conn interface {
103103
ServiceConn
104104
Identifiable
105+
GetRouterId() string
105106
CompleteAcceptSuccess() error
106107
CompleteAcceptFailed(err error)
107108
}
@@ -139,6 +140,10 @@ func NewEdgeMsgChannel(ch SdkChannel, connId uint32) *MsgChannel {
139140
}
140141
}
141142

143+
func (ec *MsgChannel) GetRouterId() string {
144+
return ec.GetChannel().Id()
145+
}
146+
142147
func (ec *MsgChannel) Id() uint32 {
143148
return ec.id
144149
}

0 commit comments

Comments
 (0)