fix: problem that cannot proxy lan_interface

This commit is contained in:
mzz2017
2023-02-01 10:24:11 +08:00
parent db50c80a96
commit 18e1eeea80
4 changed files with 5 additions and 4 deletions

View File

@ -104,7 +104,7 @@ type bpfObjectsLan struct {
bpfMaps
}
func AssignBpfPrograms(to *bpfObjects, from interface{}) {
func AssignBpfObjects(to *bpfObjects, from interface{}) {
vTo := reflect.Indirect(reflect.ValueOf(to))
vFrom := reflect.Indirect(reflect.ValueOf(from))
tFrom := vFrom.Type()