Skip to content

Commit 6389193

Browse files
authored
Merge pull request #743 from openziti/inspect-support
Add CtrlId and GetDestinationType for inspect support. Fixes #742
2 parents ad526d4 + 0988604 commit 6389193

File tree

5 files changed

+12
-0
lines changed

5 files changed

+12
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Issues Fixed and Dependency Updates
44

55
* github.com/openziti/sdk-golang: [v1.1.1 -> v1.1.2](https://github.com/openziti/sdk-golang/compare/v1.1.1...v1.1.2)
6+
* [Issue #742](https://github.com/openziti/sdk-golang/issues/742) - Additional CtrlId and GetDestinationType for inspect support
67
* [Issue #739](https://github.com/openziti/sdk-golang/issues/739) - go-jose v2.6.3 CVE-2025-27144 resolution
78

89
* github.com/zitadel/oidc/v3: v2.12.2 -> v3.39.0

xgress/circuit_inspections.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,5 @@ type CircuitDetail struct {
102102
Address string `json:"address"`
103103
Originator string `json:"originator"`
104104
IsXgress bool `json:"isXgress"`
105+
CtrlId string `json:"ctrlId"`
105106
}

xgress/xgress.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ type Xgress struct {
138138
tags map[string]string
139139
}
140140

141+
func (self *Xgress) GetDestinationType() string {
142+
return "xgress"
143+
}
144+
141145
func (self *Xgress) GetIntervalId() string {
142146
return self.circuitId
143147
}

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
}

ziti/edge/network/conn.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ func (conn *edgeConn) GetCircuitDetail() *xgress.CircuitDetail {
324324
detail.IsXgress = true
325325
detail.Originator = conn.xgCircuit.xg.Originator().String()
326326
detail.Address = string(conn.xgCircuit.xg.Address())
327+
detail.CtrlId = conn.xgCircuit.xg.CtrlId()
327328
}
328329

329330
return detail

0 commit comments

Comments
 (0)