Preflight Checklist
Version
1.8.1
Installation Type
Official Docker Compose
Service Name
DongTai-Core
Describe the details of the bug and the steps to reproduce it
在项目中已经使用了grpc一元拦截器(grpc.UnaryInterceptor)的情况下,dongtai agent再注册拦截器会导致报错
代码路径:
https://github.com/HXSecurity/DongTai-agent-go/blob/v0.4.2/core/grpc/newServer/replacement.go#L25
报错:
panic: The unary server interceptor was already set and may not be reset
Additional Information
No response
Logs
2022-07-13 19:13:43.840 error ******[-]: panic: The unary server interceptor was already set and may not be reset.
/usr/local/go/src/runtime/panic.go:844
google.golang.org/grpc.UnaryInterceptor.func1
/***/go/pkg/mod/google.golang.org/grpc@v1.40.0/server.go:382
google.golang.org/grpc.(*funcServerOption).apply
/***/go/pkg/mod/google.golang.org/grpc@v1.40.0/server.go:201
google.golang.org/grpc.NewServer
/***/go/pkg/mod/google.golang.org/grpc@v1.40.0/server.go:564
github.com/HXSecurity/DongTai-agent-go/core/grpc/newServer.NewServer
/***/go/pkg/mod/github.com/!h!x!security/!dong!tai-agent-go@v0.4.2/core/grpc/newServer/replacement.go:26
Preflight Checklist
Version
1.8.1
Installation Type
Official Docker Compose
Service Name
DongTai-Core
Describe the details of the bug and the steps to reproduce it
在项目中已经使用了grpc一元拦截器(grpc.UnaryInterceptor)的情况下,dongtai agent再注册拦截器会导致报错
代码路径:
https://github.com/HXSecurity/DongTai-agent-go/blob/v0.4.2/core/grpc/newServer/replacement.go#L25
报错:
Additional Information
No response
Logs