Fix MIZU_GLOBAL_GOLANG_PID environment variable's functionality

This commit is contained in:
M. Mert Yildiran 2022-06-08 00:34:08 +03:00
parent 503ff0fdfd
commit 6687a15587
No known key found for this signature in database
GPG Key ID: D42ADB236521BF7A

View File

@ -100,7 +100,7 @@ func UpdateTapTargets(newTapTargets []v1.Pod) {
packetSourceManager.UpdatePods(tapTargets, !*nodefrag, mainPacketInputChan)
if tlsTapperInstance != nil {
if tlsTapperInstance != nil && os.Getenv("MIZU_GLOBAL_GOLANG_PID") == "" {
if err := tlstapper.UpdateTapTargets(tlsTapperInstance, &tapTargets, *procfs); err != nil {
tlstapper.LogError(err)
success = false