mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-16 14:53:49 +00:00
Remove APP_PORTS
since it's no longer needed
This commit is contained in:
@@ -109,8 +109,6 @@ func main() {
|
||||
}
|
||||
|
||||
func loadExtensions() {
|
||||
appPorts := parseEnvVar(shared.AppPortsEnvVar)
|
||||
|
||||
dir, _ := filepath.Abs(filepath.Dir(os.Args[0]))
|
||||
extensionsDir := path.Join(dir, "./extensions/")
|
||||
|
||||
@@ -135,10 +133,6 @@ func loadExtensions() {
|
||||
dissector.Register(extension)
|
||||
extension.Dissector = dissector
|
||||
extensions[i] = extension
|
||||
if ports, ok := appPorts[extension.Protocol.Name]; ok {
|
||||
log.Printf("Overriding \"%s\" extension's ports to: %v", extension.Protocol.Name, ports)
|
||||
extension.Protocol.Ports = ports
|
||||
}
|
||||
extensionsMap[extension.Protocol.Name] = extension
|
||||
}
|
||||
|
||||
|
@@ -8,5 +8,4 @@ const (
|
||||
MaxEntriesDBSizeBytesEnvVar = "MAX_ENTRIES_DB_BYTES"
|
||||
RulePolicyPath = "/app/enforce-policy/"
|
||||
RulePolicyFileName = "enforce-policy.yaml"
|
||||
AppPortsEnvVar = "APP_PORTS"
|
||||
)
|
||||
|
Reference in New Issue
Block a user