From 8e6aa4bb3c87dc28bb8f4b50fc481bd13f727ff0 Mon Sep 17 00:00:00 2001 From: mariakagi <72726417+mariakagi@users.noreply.github.com> Date: Tue, 28 Jun 2022 13:46:14 +0900 Subject: [PATCH] Fix: selectAnchorUPF returns UPF only (#56) --- internal/context/user_plane_information.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/context/user_plane_information.go b/internal/context/user_plane_information.go index 3b86ee1f..e85482e2 100644 --- a/internal/context/user_plane_information.go +++ b/internal/context/user_plane_information.go @@ -496,7 +496,7 @@ func (upi *UserPlaneInformation) selectAnchorUPF(source *UPNode, selection *UPFS } } } - if !findNewNode { + if !findNewNode && node.Type == UPNODE_UPF { upList = append(upList, node) } if len(queue) == 0 {