mirror of
https://github.com/kubeshark/kubeshark.git
synced 2026-05-18 07:07:06 +00:00
Add Protocol struct and make it effect the UI
This commit is contained in:
@@ -140,9 +140,9 @@ func loadExtensions() {
|
||||
extension.Dissector = dissector
|
||||
log.Printf("Extension Properties: %+v\n", extension)
|
||||
extensions[i] = extension
|
||||
extensionsMap[extension.Name] = extension
|
||||
allOutboundPorts = mergeUnique(allOutboundPorts, extension.OutboundPorts)
|
||||
allInboundPorts = mergeUnique(allInboundPorts, extension.InboundPorts)
|
||||
extensionsMap[extension.Protocol.Name] = extension
|
||||
allOutboundPorts = mergeUnique(allOutboundPorts, extension.Protocol.OutboundPorts)
|
||||
allInboundPorts = mergeUnique(allInboundPorts, extension.Protocol.InboundPorts)
|
||||
}
|
||||
log.Printf("allOutboundPorts: %v\n", allOutboundPorts)
|
||||
log.Printf("allInboundPorts: %v\n", allInboundPorts)
|
||||
|
||||
@@ -111,7 +111,7 @@ func startReadingChannel(outputItems <-chan *tapApi.OutputChannelItem, extension
|
||||
|
||||
for item := range outputItems {
|
||||
fmt.Printf("item: %+v\n", item)
|
||||
extension := extensionsMap[item.Protocol]
|
||||
extension := extensionsMap[item.Protocol.Name]
|
||||
fmt.Printf("extension: %+v\n", extension)
|
||||
// var req *http.Request
|
||||
// marshedReq, _ := json.Marshal(item.Data.Request.Orig)
|
||||
|
||||
Reference in New Issue
Block a user